TX Text Control ActiveX

GetCharFromLine Method

Method

Returns the position of a line's first character. The first character's position is the number of characters from the beginning of the text to the beginning of the specified line. The first character's position of the first line is zero.

Syntax

TXTextControl.GetCharFromLine Line

Parameters

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

Return Value

The method returns the requested character position. It is -1 if an error has occurred or if the specified line does not exist.

Data Types

NameData type
LineLong
Return valueLong

See Also