TE Edit Control Win32 / Win64 Help
Product page

TerLocateFontId

Locate a font id in the document.

BOOL TerLocateFontId(hWnd,FontId,line,col)
HWND hWnd;Handle of the window to be accessed
int FontId;Font id to locate.
LPLONG line;Starting line number. Set to -1 to start the search from the current cursor position.
LPINT col;Starting column position. Set the 'line' and 'col' arguments to 0 to begin the search from the beginning of the file.

Return Value: This function returns a TRUE value if the font id is found in the document. It also returns the line number and column number of the font id.