ImageEn, unit iexRichEdit

TIERichEdit.LineFromChar

TIERichEdit.LineFromChar


Declaration

function LineFromChar(CharIndex: Integer): Integer;


Description

Returns the line number of the specified character.

Rich Edit Identifier: EM_EXLINEFROMCHAR


Example

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