Readonly
endColumn on which the range ends in line endLineNumber
.
Readonly
endLine number on which the range ends.
Readonly
positionThe column on positionLineNumber
where the selection has ended.
Readonly
positionThe line number on which the selection has ended.
Readonly
selectionThe column on selectionStartLineNumber
where the selection has started.
Readonly
selectionThe line number on which the selection has started.
Readonly
startColumn on which the range starts in line startLineNumber
(starts at 1).
Readonly
startLine number on which the range starts (starts at 1).
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).
Test if range
is strictly in this range. range
must start after and end before this range for the result to be true.
Static
areStatic
areStatic
collapseStatic
collapseStatic
compareStatic
compareStatic
containsStatic
containsStatic
createCreate with a direction.
Static
equalsStatic
fromStatic
fromCreates a Selection
from a range, given a direction.
Static
getStatic
getStatic
intersectStatic
isTest if range
is empty.
Static
isIRangeStatic
isISelectionTest if obj
is an ISelection
.
Static
liftStatic
liftCreate a Selection
from an ISelection
.
Static
plusStatic
selectionsa
equals b
.
Static
selectionsTest if the two selections are equal.
Static
spansTest if the range spans multiple lines.
Static
strict
A selection in the editor. The selection is a range that has an orientation.