ReadonlyendColumn on which the range ends in line endLineNumber.
ReadonlyendLine number on which the range ends.
ReadonlypositionThe column on positionLineNumber where the selection has ended.
ReadonlypositionThe line number on which the selection has ended.
ReadonlyselectionThe column on selectionStartLineNumber where the selection has started.
ReadonlyselectionThe line number on which the selection has started.
ReadonlystartColumn on which the range starts in line startLineNumber (starts at 1).
ReadonlystartLine number on which the range starts (starts at 1).
Create a new empty range using this range's end position.
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.
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.
Get the position at the start of the selection.
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.
StaticareStaticareStaticareStaticcollapseStaticcollapseStaticcompareStaticcompareStaticcontainsStaticcontainsStaticcreateCreate with a direction.
StaticequalsStaticfromStaticfromCreates a Selection from a range, given a direction.
StaticgetStaticgetStaticintersectStaticisStaticisStaticisStaticliftCreate a Range from an IRange.
StaticliftStaticplusStaticselectionsStaticselectionsStaticspansStaticstrict
A selection in the editor. The selection is a range that has an orientation.