Instance Property

selectedRanges

Returns an array of selected ranges.

Declaration

@property(copy) NSArray<NSValue *> *selectedRanges;

Discussion

This property is required for the replace all in selection, select all, and select all in selection actions. The returned NSArray object should contain NSRanges wrapped by NSValues.

See Also

Selection Information

selectable

Returns whether the text is selectable.

allowsMultipleSelection

Returns whether multiple items can be selected.

firstSelectedRange

Returns the currently selected range.