Column on which the range ends in line endLineNumber
.
Line number on which the range ends.
The column on positionLineNumber
where the selection has ended.
The line number on which the selection has ended.
The column on selectionStartLineNumber
where the selection has started.
The line number on which the selection has started.
Column on which the range starts in line startLineNumber
(starts at 1).
Line number on which the range starts (starts at 1).
Create a new empty range using this range's start position.
Test if position is in this range. If the position is at the edges, will return true.
Test if range is in this range. If the range is equal to this range, will return true.
Test if this range equals other.
Test if equals other selection.
Get directions (LTR or RTL).
Return the end position (which will be after or equal to the start position)
Get the position at positionLineNumber
and positionColumn
.
Return the start position (which will be before or equal to the end position)
Test if this range is empty.
Create a new selection with a different positionLineNumber
and positionColumn
.
Create a new selection with a different selectionStartLineNumber
and selectionStartColumn
.
Test if range
is strictly in this range. range
must start after and end before this range for the result to be true.
Transform to a human-readable representation.
Create with a direction.
Test if range
is empty.
Test if obj
is an IRange
.
Test if obj
is an ISelection
.
Create a Selection
from an ISelection
.
a
equals b
.
Test if the two selections are equal.
Test if the range spans multiple lines.
Generated using TypeDoc
A selection in the editor. The selection is a range that has an orientation.