TE Edit Control Win32 / Win64 Help
Product page

TerPosTag

Position the cursor at the specified tag position.

BOOL TerPosTag (hWnd, TagId, name, scope, repaint)
BOOL TerPosTag Ex(hWnd, type, TagId, name, scope, repaint)
HWND hWnd;Handle of the window to be accessed
int type;Tag type (used by the TerPosTagEx function only):
TERTAG_BKM:Bookmark tag
TERTAG_USER:Generic tag
int TagId;The tag id to search for. This parameter is ignored if the 'name' parameter is specified.
LPBYTE name;The tag name to search for. Please note that tag names are not unique within a document.
int scope;Search scope:
SCOPE_BEGIN:Search from the beginning of the document.
SCOPE_FORWARD:Search below the cursor position.
SCOPE_BACKWARD:Search above the cursor position.
SCOPE_ANY:A fast method of locating an instance of the requested bookmark.
BOOL repaint;TRUE to refresh the screen after this operation.

Return Value: This function returns a TRUE value when successful.