TE Edit Control .NET Core / .NET Framework Help
Product page

TerDeleteTag

Delete a tag at the specified text position:

int TerDeleteTag (line, col, type, name)
long line;The line position of the text. Set to -1 to use the current cursor position.
int col;The column position of the text. This parameter is ignored if the 'line' parameter is set to -1.
int type; Tag type:
TERTAG_BKM:Bookmark tags
TERTAG_USER:Generic tags
string name;The tag name to delete

Return Value: This function deletes the specified tag and return the tag id of the deleted tag. It returns 0 if no tag is found at the location, or if an error is encountered.