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

TerLocateStyle

Locate text with the given character style.

bool TerLocateStyle(style, ref StartLine, ref StartCol, out StringLen)
WORD style;Style bits:
BOLD:Bold
ULINE:Underline
ULINED:Double Underline
ITALIC:Italic
STRIKE:Strikethrough
SUPSCR:Superscript
SUBSCR:Subscript
HIDDEN:Hidden Text
PROTECT:Protected Text
CAPSAll Caps
SCAPSSmall Caps
PICTPicture

Use the logical OR (|) operator to specify more than one styles. The search is successful when any of the specified styles are located.

int StartLine:(INPUT/OUTPUT) Specifies the line number to start the search. On a successful search, this field contains the line number of the located text.
int StartCol:(INPUT/OUTPUT) Specifies the column number to start the search. On a successful search, this field contains the column number of the located text.
int StringLen:(OUTPUT) Specifies the variable that receives the length of the located text. The editor matches the text up to the end of the line.

Description: Use this function to locate the beginning of the text with the given character styles.

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