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

TerGetVisibleCol

Get the visible column number from a text column number.

int TerGetVisibleCol( LineNo, ColNo)
int LineNo;The text line number (zero based). Set this parameter to -1 to specify the current line number.
int ColNoThe text column number. Set to -1 to specify the current column number.

Description: This function calculates the visible column number (zero based) by ignoring the character not visible on the screen. These characters might include the hidden text when the hidden text is not displayed, field name when field name is not displayed, field data when the field data is not displayed, etc.

Return Value: This function returns the visible column number. It returns -1 to indicate an error condition.