RichEdit.getLineFromChar

Overview | Methods | This Package | All Packages

RichEdit.getLineFromChar

Retrieves the line number of the line that contains the specified character position.

Syntax

public int getLineFromChar( int charPos )

Parameters

charPos

The character position for which to retrieve the line number.

Return Value

Returns a zero-based integer that identifies the line in which the specified character position occurs.