lineAt

abstract fun lineAt(line: Int): TextLine(source)

Returns a text line denoted by the line number. Note that the returned object is not live and changes to the document are not reflected.

Parameters

line

A line number in [0, lineCount).


abstract fun lineAt(position: Position): TextLine(source)

Returns a text line denoted by the position. Note that the returned object is not live and changes to the document are not reflected.

The position will be adjusted.

Parameters

position

A position.

See also