text-manipulation
Version:
A NPM library that assists in text range manipulation
87 lines (46 loc) • 1.95 kB
Markdown
[text-manipulation](../README.md) > ["buffer/immutable-text-range"](../modules/_buffer_immutable_text_range_.md) > [ImmutableTextRange](../classes/_buffer_immutable_text_range_.immutabletextrange.md)
# Class: ImmutableTextRange
## Hierarchy
**ImmutableTextRange**
## Implements
* [TextRange](../interfaces/_buffer_text_range_.textrange.md)
## Index
### Constructors
* [constructor](_buffer_immutable_text_range_.immutabletextrange.md#constructor)
### Properties
* [_end](_buffer_immutable_text_range_.immutabletextrange.md#_end)
* [_start](_buffer_immutable_text_range_.immutabletextrange.md#_start)
### Accessors
* [end](_buffer_immutable_text_range_.immutabletextrange.md#end)
* [start](_buffer_immutable_text_range_.immutabletextrange.md#start)
---
## Constructors
<a id="constructor"></a>
### constructor
⊕ **new ImmutableTextRange**(interval: *[[TextPosition](_buffer_text_position_.textposition.md), [TextPosition](_buffer_text_position_.textposition.md)]*): [ImmutableTextRange](_buffer_immutable_text_range_.immutabletextrange.md)
**Parameters:**
| Param | Type |
| ------ | ------ |
| interval | [[TextPosition](_buffer_text_position_.textposition.md), [TextPosition](_buffer_text_position_.textposition.md)] |
**Returns:** [ImmutableTextRange](_buffer_immutable_text_range_.immutabletextrange.md)
___
## Properties
<a id="_end"></a>
### `<Private>` _end
**● _end**: *[TextPosition](_buffer_text_position_.textposition.md)*
___
<a id="_start"></a>
### `<Private>` _start
**● _start**: *[TextPosition](_buffer_text_position_.textposition.md)*
___
## Accessors
<a id="end"></a>
### end
getend(): [TextPosition](_buffer_text_position_.textposition.md)
**Returns:** [TextPosition](_buffer_text_position_.textposition.md)
___
<a id="start"></a>
### start
getstart(): [TextPosition](_buffer_text_position_.textposition.md)
**Returns:** [TextPosition](_buffer_text_position_.textposition.md)
___