Line

class Line

This type describes a line in the document. It is created on-demand when lines are queried.

Properties

Link copied to clipboard

The position of the start of the line.

Link copied to clipboard
val length: Int

The length of the line (not including any line break after it).

Link copied to clipboard

This line's line number (1-based).

Link copied to clipboard

The line's content.

Link copied to clipboard
val to: DocPos

The position at the end of the line (before the line break, or at the end of document for the last line).