ReadonlyendColumn on which the range ends in line endLineNumber.
ReadonlyendLine number on which the range ends.
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.
Test if this range equals other.
Return the end position (which will be after or equal to the start position)
Return the start position (which will be before or equal to the end position)
Test if this range is empty.
A reunion of the two ranges. The smallest position will be used as the start point, and the largest one as the end point.
Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.
Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.
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 user presentable string representation.
StaticareTest if the two ranges are intersecting. If the ranges are touching it returns true.
StaticareTest if the two ranges are touching in any way.
StaticcollapseStaticcollapseStaticcompareA function that compares ranges, useful for sorting ranges It will first compare ranges on the endPosition and then on the startPosition
StaticcompareA function that compares ranges, useful for sorting ranges It will first compare ranges on the startPosition and then on the endPosition
StaticcontainsTest if position is in range. If the position is at the edges, will return true.
StaticcontainsTest if otherRange is in range. If the ranges are equal, will return true.
StaticequalsTest if range a equals b.
StaticfromOptionalend: IPositionStaticgetReturn the end position (which will be after or equal to the start position)
StaticgetReturn the start position (which will be before or equal to the end position)
StaticintersectStaticisTest if range is empty.
StaticisTest if obj is an IRange.
StaticliftCreate a Range from an IRange.
StaticplusA reunion of the two ranges. The smallest position will be used as the start point, and the largest one as the end point.
StaticspansTest if the range spans multiple lines.
StaticstrictTest if otherRange is strictly in range (must start after, and end before). If the ranges are equal, will return false.
A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)