Struct TextRange
text content range
struct TextRange;
Fields
| Name | Type | Description |
|---|---|---|
end
|
TextPosition | |
start
|
TextPosition |
Properties
| Name | Type | Description |
|---|---|---|
empty[get]
|
bool | returns true if range is empty |
lines[get]
|
int | returns count of lines in range |
singleLine[get]
|
bool | returns true if start and end located at the same line |
toString[get]
|
string |
Methods
| Name | Description |
|---|---|
intersects
(v)
|
|
isInside
(p)
|
returns true if position is inside this range |
isInsideOrNext
(p)
|
returns true if position is inside this range or right after this range |