Label.getSelectionBounds

Gets the selected range of characters in the label, returning TRUE if there’s a selection.

class Label
bool
getSelectionBounds
(
out int start
,
out int end
)

Parameters

start int

return location for start of selection, as a character offset

end int

return location for end of selection, as a character offset

Return Value

Type: bool

TRUE if selection is non-empty