mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 15:05:39 +01:00
81 lines
No EOL
93 KiB
HTML
81 lines
No EOL
93 KiB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Range | Monaco Editor API</title><meta name="description" content="Documentation for Monaco Editor API"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Monaco Editor API</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">Monaco Editor API</a></li><li><a href="../modules/monaco.html">monaco</a></li><li><a href="monaco.Range.html">Range</a></li></ul><h1>Class Range</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)</p>
|
|
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Range</span><ul class="tsd-hierarchy"><li><a href="monaco.Selection.html" class="tsd-signature-type" data-tsd-kind="Class">Selection</a></li></ul></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="monaco.Range.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#endColumn" class="tsd-kind-icon">end<wbr/>Column</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#endLineNumber" class="tsd-kind-icon">end<wbr/>Line<wbr/>Number</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#startColumn" class="tsd-kind-icon">start<wbr/>Column</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#startLineNumber" class="tsd-kind-icon">start<wbr/>Line<wbr/>Number</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#collapseToEnd" class="tsd-kind-icon">collapse<wbr/>To<wbr/>End</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#collapseToStart" class="tsd-kind-icon">collapse<wbr/>To<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#containsPosition" class="tsd-kind-icon">contains<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#containsRange" class="tsd-kind-icon">contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#delta" class="tsd-kind-icon">delta</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#equalsRange" class="tsd-kind-icon">equals<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#getEndPosition" class="tsd-kind-icon">get<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#getStartPosition" class="tsd-kind-icon">get<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#intersectRanges" class="tsd-kind-icon">intersect<wbr/>Ranges</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#isEmpty" class="tsd-kind-icon">is<wbr/>Empty</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#plusRange" class="tsd-kind-icon">plus<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#setEndPosition" class="tsd-kind-icon">set<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#setStartPosition" class="tsd-kind-icon">set<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#strictContainsRange" class="tsd-kind-icon">strict<wbr/>Contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#toJSON" class="tsd-kind-icon">toJSON</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#areIntersecting" class="tsd-kind-icon">are<wbr/>Intersecting</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#areIntersectingOrTouching" class="tsd-kind-icon">are<wbr/>Intersecting<wbr/>Or<wbr/>Touching</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#collapseToEnd-1" class="tsd-kind-icon">collapse<wbr/>To<wbr/>End</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#collapseToStart-1" class="tsd-kind-icon">collapse<wbr/>To<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#compareRangesUsingEnds" class="tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Ends</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#compareRangesUsingStarts" class="tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Starts</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#containsPosition-1" class="tsd-kind-icon">contains<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#containsRange-1" class="tsd-kind-icon">contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#equalsRange-1" class="tsd-kind-icon">equals<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#fromPositions" class="tsd-kind-icon">from<wbr/>Positions</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#getEndPosition-1" class="tsd-kind-icon">get<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#getStartPosition-1" class="tsd-kind-icon">get<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#intersectRanges-1" class="tsd-kind-icon">intersect<wbr/>Ranges</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#isEmpty-1" class="tsd-kind-icon">is<wbr/>Empty</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#isIRange" class="tsd-kind-icon">isIRange</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#lift" class="tsd-kind-icon">lift</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#plusRange-1" class="tsd-kind-icon">plus<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#spansMultipleLines" class="tsd-kind-icon">spans<wbr/>Multiple<wbr/>Lines</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#strictContainsRange-1" class="tsd-kind-icon">strict<wbr/>Contains<wbr/>Range</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link">constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Range<span class="tsd-signature-symbol">(</span>startLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, startColumn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endColumn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L622">website/typedoc/monaco.d.ts:622</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>startLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>startColumn: <span class="tsd-signature-type">number</span></h5></li><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endColumn: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="endColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> end<wbr/>Column<a href="#endColumn" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">end<wbr/>Column<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L621">website/typedoc/monaco.d.ts:621</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Column on which the range ends in line <code>endLineNumber</code>.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="endLineNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> end<wbr/>Line<wbr/>Number<a href="#endLineNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">end<wbr/>Line<wbr/>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L617">website/typedoc/monaco.d.ts:617</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Line number on which the range ends.</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="startColumn" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> start<wbr/>Column<a href="#startColumn" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">start<wbr/>Column<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L613">website/typedoc/monaco.d.ts:613</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Column on which the range starts in line <code>startLineNumber</code> (starts at 1).</p>
|
|
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="startLineNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadonly">Readonly</span> start<wbr/>Line<wbr/>Number<a href="#startLineNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">start<wbr/>Line<wbr/>Number<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L609">website/typedoc/monaco.d.ts:609</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Line number on which the range starts (starts at 1).</p>
|
|
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="collapseToEnd" class="tsd-anchor"></a><h3 class="tsd-anchor-link">collapse<wbr/>To<wbr/>End<a href="#collapseToEnd" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">collapse<wbr/>To<wbr/>End<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L720">website/typedoc/monaco.d.ts:720</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new empty range using this range's end position.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="collapseToStart" class="tsd-anchor"></a><h3 class="tsd-anchor-link">collapse<wbr/>To<wbr/>Start<a href="#collapseToStart" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">collapse<wbr/>To<wbr/>Start<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L712">website/typedoc/monaco.d.ts:712</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new empty range using this range's start position.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="containsPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">contains<wbr/>Position<a href="#containsPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">contains<wbr/>Position<span class="tsd-signature-symbol">(</span>position<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L634">website/typedoc/monaco.d.ts:634</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if position is in this range. If the position is at the edges, will return true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>position: <a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="containsRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">contains<wbr/>Range<a href="#containsRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">contains<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L642">website/typedoc/monaco.d.ts:642</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if range is in this range. If the range is equal to this range, will return true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="delta" class="tsd-anchor"></a><h3 class="tsd-anchor-link">delta<a href="#delta" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">delta<span class="tsd-signature-symbol">(</span>lineCount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L728">website/typedoc/monaco.d.ts:728</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Moves the range by the given amount of lines.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>lineCount: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="equalsRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">equals<wbr/>Range<a href="#equalsRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">equals<wbr/>Range<span class="tsd-signature-symbol">(</span>other<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L676">website/typedoc/monaco.d.ts:676</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if this range equals other.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>other: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getEndPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>End<wbr/>Position<a href="#getEndPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>End<wbr/>Position<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L684">website/typedoc/monaco.d.ts:684</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Return the end position (which will be after or equal to the start position)</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getStartPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Start<wbr/>Position<a href="#getStartPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Start<wbr/>Position<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L692">website/typedoc/monaco.d.ts:692</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Return the start position (which will be before or equal to the end position)</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="intersectRanges" class="tsd-anchor"></a><h3 class="tsd-anchor-link">intersect<wbr/>Ranges<a href="#intersectRanges" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">intersect<wbr/>Ranges<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L668">website/typedoc/monaco.d.ts:668</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A intersection of the two ranges.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isEmpty" class="tsd-anchor"></a><h3 class="tsd-anchor-link">is<wbr/>Empty<a href="#isEmpty" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Empty<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L626">website/typedoc/monaco.d.ts:626</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if this range is empty.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="plusRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">plus<wbr/>Range<a href="#plusRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">plus<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L659">website/typedoc/monaco.d.ts:659</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A reunion of the two ranges.
|
|
The smallest position will be used as the start point, and the largest one as the end point.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setEndPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>End<wbr/>Position<a href="#setEndPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>End<wbr/>Position<span class="tsd-signature-symbol">(</span>endLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, endColumn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L704">website/typedoc/monaco.d.ts:704</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>endLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>endColumn: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="setStartPosition" class="tsd-anchor"></a><h3 class="tsd-anchor-link">set<wbr/>Start<wbr/>Position<a href="#setStartPosition" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">set<wbr/>Start<wbr/>Position<span class="tsd-signature-symbol">(</span>startLineNumber<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, startColumn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L708">website/typedoc/monaco.d.ts:708</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>startLineNumber: <span class="tsd-signature-type">number</span></h5></li><li><h5>startColumn: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="strictContainsRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link">strict<wbr/>Contains<wbr/>Range<a href="#strictContainsRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">strict<wbr/>Contains<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L650">website/typedoc/monaco.d.ts:650</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>range</code> is strictly in this range. <code>range</code> must start after and end before this range for the result to be true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toJSON" class="tsd-anchor"></a><h3 class="tsd-anchor-link">toJSON<a href="#toJSON" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">toJSON<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L762">website/typedoc/monaco.d.ts:762</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="toString" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>String<a href="#toString" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L700">website/typedoc/monaco.d.ts:700</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Transform to a user presentable string representation.</p>
|
|
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="areIntersecting" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> are<wbr/>Intersecting<a href="#areIntersecting" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">are<wbr/>Intersecting<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L747">website/typedoc/monaco.d.ts:747</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if the two ranges are intersecting. If the ranges are touching it returns true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="areIntersectingOrTouching" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> are<wbr/>Intersecting<wbr/>Or<wbr/>Touching<a href="#areIntersectingOrTouching" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">are<wbr/>Intersecting<wbr/>Or<wbr/>Touching<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L743">website/typedoc/monaco.d.ts:743</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if the two ranges are touching in any way.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="collapseToEnd-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> collapse<wbr/>To<wbr/>End<a href="#collapseToEnd-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">collapse<wbr/>To<wbr/>End<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L724">website/typedoc/monaco.d.ts:724</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new empty range using this range's end position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="collapseToStart-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> collapse<wbr/>To<wbr/>Start<a href="#collapseToStart-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">collapse<wbr/>To<wbr/>Start<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L716">website/typedoc/monaco.d.ts:716</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a new empty range using this range's start position.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="compareRangesUsingEnds" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> compare<wbr/>Ranges<wbr/>Using<wbr/>Ends<a href="#compareRangesUsingEnds" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Ends<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L757">website/typedoc/monaco.d.ts:757</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A function that compares ranges, useful for sorting ranges
|
|
It will first compare ranges on the endPosition and then on the startPosition</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="compareRangesUsingStarts" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> compare<wbr/>Ranges<wbr/>Using<wbr/>Starts<a href="#compareRangesUsingStarts" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Starts<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L752">website/typedoc/monaco.d.ts:752</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A function that compares ranges, useful for sorting ranges
|
|
It will first compare ranges on the startPosition and then on the endPosition</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="containsPosition-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> contains<wbr/>Position<a href="#containsPosition-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">contains<wbr/>Position<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, position<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L638">website/typedoc/monaco.d.ts:638</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>position</code> is in <code>range</code>. If the position is at the edges, will return true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>position: <a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="containsRange-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> contains<wbr/>Range<a href="#containsRange-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">contains<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, otherRange<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L646">website/typedoc/monaco.d.ts:646</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>otherRange</code> is in <code>range</code>. If the ranges are equal, will return true.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>otherRange: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="equalsRange-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> equals<wbr/>Range<a href="#equalsRange-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">equals<wbr/>Range<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L680">website/typedoc/monaco.d.ts:680</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if range <code>a</code> equals <code>b</code>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="fromPositions" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> from<wbr/>Positions<a href="#fromPositions" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">from<wbr/>Positions<span class="tsd-signature-symbol">(</span>start<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a>, end<span class="tsd-signature-symbol">?: </span><a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L729">website/typedoc/monaco.d.ts:729</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>start: <a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> end: <a href="../interfaces/monaco.IPosition.html" class="tsd-signature-type" data-tsd-kind="Interface">IPosition</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="getEndPosition-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> get<wbr/>End<wbr/>Position<a href="#getEndPosition-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">get<wbr/>End<wbr/>Position<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L688">website/typedoc/monaco.d.ts:688</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Return the end position (which will be after or equal to the start position)</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="getStartPosition-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> get<wbr/>Start<wbr/>Position<a href="#getStartPosition-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">get<wbr/>Start<wbr/>Position<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L696">website/typedoc/monaco.d.ts:696</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Return the start position (which will be before or equal to the end position)</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Position.html" class="tsd-signature-type" data-tsd-kind="Class">Position</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="intersectRanges-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> intersect<wbr/>Ranges<a href="#intersectRanges-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">intersect<wbr/>Ranges<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L672">website/typedoc/monaco.d.ts:672</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A intersection of the two ranges.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="isEmpty-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> is<wbr/>Empty<a href="#isEmpty-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">is<wbr/>Empty<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L630">website/typedoc/monaco.d.ts:630</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>range</code> is empty.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="isIRange" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> isIRange<a href="#isIRange" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">isIRange<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">obj</span><span class="tsd-signature-symbol"> is </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L739">website/typedoc/monaco.d.ts:739</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>obj</code> is an <code>IRange</code>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">obj</span><span class="tsd-signature-symbol"> is </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="lift" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> lift<a href="#lift" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">lift<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span></li><li class="tsd-signature tsd-kind-icon">lift<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li><li class="tsd-signature tsd-kind-icon">lift<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L733">website/typedoc/monaco.d.ts:733</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Create a <code>Range</code> from an <code>IRange</code>.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <span class="tsd-signature-type">null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span></h4></li><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L734">website/typedoc/monaco.d.ts:734</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L735">website/typedoc/monaco.d.ts:735</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="plusRange-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> plus<wbr/>Range<a href="#plusRange-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">plus<wbr/>Range<span class="tsd-signature-symbol">(</span>a<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, b<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L664">website/typedoc/monaco.d.ts:664</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>A reunion of the two ranges.
|
|
The smallest position will be used as the start point, and the largest one as the end point.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>a: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>b: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="monaco.Range.html" class="tsd-signature-type" data-tsd-kind="Class">Range</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="spansMultipleLines" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> spans<wbr/>Multiple<wbr/>Lines<a href="#spansMultipleLines" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">spans<wbr/>Multiple<wbr/>Lines<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L761">website/typedoc/monaco.d.ts:761</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if the range spans multiple lines.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-static"><a id="strictContainsRange-1" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span> strict<wbr/>Contains<wbr/>Range<a href="#strictContainsRange-1" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-static"><li class="tsd-signature tsd-kind-icon">strict<wbr/>Contains<wbr/>Range<span class="tsd-signature-symbol">(</span>range<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a>, otherRange<span class="tsd-signature-symbol">: </span><a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/microsoft/monaco-editor/blob/08439de/website/typedoc/monaco.d.ts#L654">website/typedoc/monaco.d.ts:654</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
<p>Test if <code>otherRange</code> is strictly in <code>range</code> (must start after, and end before). If the ranges are equal, will return false.</p>
|
|
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>range: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li><li><h5>otherRange: <a href="../interfaces/monaco.IRange.html" class="tsd-signature-type" data-tsd-kind="Interface">IRange</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class="current tsd-kind-namespace"><a href="../modules/monaco.html">monaco</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.editor.html">editor</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.languages.html">languages</a></li><li class=" tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/monaco.worker.html">worker</a></li></ul></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class tsd-parent-kind-namespace"><a href="monaco.Range.html" class="tsd-kind-icon">Range</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="monaco.Range.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#endColumn" class="tsd-kind-icon">end<wbr/>Column</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#endLineNumber" class="tsd-kind-icon">end<wbr/>Line<wbr/>Number</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#startColumn" class="tsd-kind-icon">start<wbr/>Column</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="monaco.Range.html#startLineNumber" class="tsd-kind-icon">start<wbr/>Line<wbr/>Number</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#collapseToEnd" class="tsd-kind-icon">collapse<wbr/>To<wbr/>End</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#collapseToStart" class="tsd-kind-icon">collapse<wbr/>To<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#containsPosition" class="tsd-kind-icon">contains<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#containsRange" class="tsd-kind-icon">contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#delta" class="tsd-kind-icon">delta</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#equalsRange" class="tsd-kind-icon">equals<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#getEndPosition" class="tsd-kind-icon">get<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#getStartPosition" class="tsd-kind-icon">get<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#intersectRanges" class="tsd-kind-icon">intersect<wbr/>Ranges</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#isEmpty" class="tsd-kind-icon">is<wbr/>Empty</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#plusRange" class="tsd-kind-icon">plus<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#setEndPosition" class="tsd-kind-icon">set<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#setStartPosition" class="tsd-kind-icon">set<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#strictContainsRange" class="tsd-kind-icon">strict<wbr/>Contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#toJSON" class="tsd-kind-icon">toJSON</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="monaco.Range.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#areIntersecting" class="tsd-kind-icon">are<wbr/>Intersecting</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#areIntersectingOrTouching" class="tsd-kind-icon">are<wbr/>Intersecting<wbr/>Or<wbr/>Touching</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#collapseToEnd-1" class="tsd-kind-icon">collapse<wbr/>To<wbr/>End</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#collapseToStart-1" class="tsd-kind-icon">collapse<wbr/>To<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#compareRangesUsingEnds" class="tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Ends</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#compareRangesUsingStarts" class="tsd-kind-icon">compare<wbr/>Ranges<wbr/>Using<wbr/>Starts</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#containsPosition-1" class="tsd-kind-icon">contains<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#containsRange-1" class="tsd-kind-icon">contains<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#equalsRange-1" class="tsd-kind-icon">equals<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#fromPositions" class="tsd-kind-icon">from<wbr/>Positions</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#getEndPosition-1" class="tsd-kind-icon">get<wbr/>End<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#getStartPosition-1" class="tsd-kind-icon">get<wbr/>Start<wbr/>Position</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#intersectRanges-1" class="tsd-kind-icon">intersect<wbr/>Ranges</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#isEmpty-1" class="tsd-kind-icon">is<wbr/>Empty</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#isIRange" class="tsd-kind-icon">isIRange</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#lift" class="tsd-kind-icon">lift</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#plusRange-1" class="tsd-kind-icon">plus<wbr/>Range</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#spansMultipleLines" class="tsd-kind-icon">spans<wbr/>Multiple<wbr/>Lines</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><a href="monaco.Range.html#strictContainsRange-1" class="tsd-kind-icon">strict<wbr/>Contains<wbr/>Range</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html> |