TX Text Control ActiveX

GetLineFromChar Method

Method

Returns the index of the line which contains the character with the specified character position.

Syntax

TXTextControl.GetLineFromChar Char

Parameters

ParameterDescription
CharSpecifies the position of the character whose line index is returned. The position of the first character is zero.

Return Value

The method returns a line index, starting with 0 for the first line. The return value is -1 if an error has occurred or if the specified character position does not exist.

Data Types

NameData type
CharLong
Return valueLong

See Also