TE Edit Control Java / HTML-JavaScript Help
Product page

TerLocateFontId

Locate a font id in the document.

boolean TerLocateFontId(FontId,line, col)
int FontId;Font id to locate.
int line;

Starting line number. Set to -1 to start the search from the current cursor position.

Upon a successful return from this method, you can retrieve the new 'line' value using the TerGetOutInt method where given the font-id is found:

  line=tej.TerGetOutInt("Line");
int col;

Starting column position. Set the 'line' and 'col' arguments to 0 to begin the search from the beginning of the file.

Upon a successful return from this method, you can retrieve the new 'col' value using the TerGetOutInt method where given the font-id is found

  col=tej.TerGetOutInt("Col");	

Return Value: This function returns a true value if the font id is found in the document. The updated line/col value can be retrieved by using the TerGetOutInt method.