Instance Property

firstSelectedRange

Returns the currently selected range.

Declaration

@property(readonly) NSRange firstSelectedRange;

Discussion

This property is required for the next match, previous match, replace, replace and find and set search string actions. The client should return its first selected range, or {index, 0} to indicate the location of the insertion point if there is no selection.

See Also

Selection Information

selectable

Returns whether the text is selectable.

allowsMultipleSelection

Returns whether multiple items can be selected.

selectedRanges

Returns an array of selected ranges.