TCnTextBoxBase.GetLineFromCharIndex(Integer) Method

Retrieves the line number from the specified character position within the text of the control.

Namespace: CNClrLib.Control.TextBoxBase
public
 function GetLineFromCharIndex(Index: Integer): Integer;

Parameters

Index
Type: Integer

The character index position to search.

Return Value

Type: Integer

The zero-based line number in which the character index is located.