Struct TextRange

text content range

struct TextRange;

Fields

NameTypeDescription
end TextPosition
start TextPosition

Properties

NameTypeDescription
empty[get] boolreturns true if range is empty
lines[get] intreturns count of lines in range
singleLine[get] boolreturns true if start and end located at the same line
toString[get] string

Methods

NameDescription
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