ImageEn, unit iexRichEdit

TIERichEdit.GetLineIndex

TIERichEdit.GetLineIndex


Declaration

function GetLineIndex(LineNo: Integer): Integer;


Description

Returns the index of the first character on the specified line.

Rich Edit Identifier: EM_LINEINDEX


Example

// Get the index of the first character on the current line
lineNo := IERichEdit1.LineFromChar( IERichEdit1.SelStart );
idx    := IERichEdit1.GetLineIndex( lineNo );