TextEditorRange
A region of the document from start (inclusive) to end (exclusive), the unit used for selections, edits, and rich spans. Build one from two CharLineOffsets with fromOffsets or CharLineOffset.toRange, which order the endpoints for you.
Functions
Returns an IntRange representing the line numbers that this TextEditorRange spans.
Returns an IntRange representing the line numbers that this TextEditorRange spans, with an optional buffer of additional lines on either side.
Returns an IntRange representing the line wrap numbers that this TextEditorRange spans.
True if lineIndex falls within the lines this range covers.
True if this range and other overlap by at least one position.
True if the range begins and ends on the same line.
Returns the smallest range that covers both this range and other.