Constructors
constructor
- new Range(startLineNumber, startColumn, endLineNumber, endColumn): Range
Parameters
- startLineNumber: number
- startColumn: number
- endLineNumber: number
- endColumn: number
Properties
Readonly
endColumn
endColumn: number
Readonly
endLineNumber
endLineNumber: number
Readonly
startColumn
startColumn: number
Readonly
startLineNumber
startLineNumber: number
Methods
collapseToEnd
- collapseToEnd(): Range
collapseToStart
- collapseToStart(): Range
containsPosition
- containsPosition(position): boolean
Returns boolean
containsRange
- containsRange(range): boolean
Returns boolean
delta
- delta(lineCount): Range
equalsRange
- equalsRange(other): boolean
Returns boolean
getEndPosition
- getEndPosition(): Position
getStartPosition
- getStartPosition(): Position
intersectRanges
- intersectRanges(range): Range
isEmpty
- isEmpty(): boolean
Returns boolean
plusRange
- plusRange(range): Range
setEndPosition
- setEndPosition(endLineNumber, endColumn): Range
Parameters
- endLineNumber: number
- endColumn: number
setStartPosition
- setStartPosition(startLineNumber, startColumn): Range
Parameters
- startLineNumber: number
- startColumn: number
strictContainsRange
- strictContainsRange(range): boolean
Returns boolean
toJSON
- toJSON(): IRange
toString
- toString(): string
Returns string
Static
areIntersecting
- areIntersecting(a, b): boolean
Returns boolean
Static
areIntersectingOrTouching
- areIntersectingOrTouching(a, b): boolean
Returns boolean
Static
collapseToEnd
- collapseToEnd(range): Range
Static
collapseToStart
- collapseToStart(range): Range
Static
compareRangesUsingEnds
- compareRangesUsingEnds(a, b): number
Returns number
Static
compareRangesUsingStarts
- compareRangesUsingStarts(a, b): number
Returns number
Static
containsPosition
- containsPosition(range, position): boolean
Returns boolean
Static
containsRange
- containsRange(range, otherRange): boolean
Returns boolean
Static
equalsRange
- equalsRange(a, b): boolean
Returns boolean
Static
fromPositions
- fromPositions(start, end?): Range
Static
getEndPosition
- getEndPosition(range): Position
Static
getStartPosition
- getStartPosition(range): Position
Static
intersectRanges
- intersectRanges(a, b): Range
Static
isEmpty
- isEmpty(range): boolean
Returns boolean
Static
isIRange
- isIRange(obj): obj is IRange
Returns obj is IRange
Static
lift
- lift(range): null
Returns null
- lift(range): Range
- lift(range): Range
Static
plusRange
- plusRange(a, b): Range
Static
spansMultipleLines
- spansMultipleLines(range): boolean
Returns boolean
Static
strictContainsRange
- strictContainsRange(range, otherRange): boolean
Returns boolean
A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)