Create a selection from coordinates.
a zero based line value
a zero based character value
a zero based line value
a zero based character value
ReadonlyactiveThe position of the cursor. This position might be before or after anchor.
ReadonlyanchorThe position at which the selection starts. This position might be before or after active.
ReadonlyendEnd position.
true if start and end are equal
Readonlyistrue if start.line and end.line are equal
ReadonlystartStart position.
Derived a new range from this range.
Optionalstart: PositionA position that should be used as start. The default value is the current start.
Optionalend: PositionA position that should be used as end. The default value is the current end.
A range derived from this range with the given start and end position.
If start and end are not different this range will be returned.
Represents a text selection in an editor.