TextRange¶
Represents a half-open character range [start, end) within a text field's content string.
When start == end the range is collapsed and represents a cursor position rather than a selection. start and end may be in either order; min and max always give the canonical inclusive/exclusive bounds regardless of direction.
Constructors¶
TextRange¶
Types¶
Companion¶
object Companion
Properties¶
end¶
isCollapsed¶
val isCollapsed: Boolean
length¶
The number of characters in the selected range.