TE Edit Control Win32 / Win64 Help
Product page

TerDeleteTag

Delete a tag at the specified text position:

int TerDeleteTag (hWnd, line, col, type, name)
HWND hWnd;The handle of the window to be accessed
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
LPBYTE 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.