selectedRanges
An array containing the ranges of characters selected in the receiver’s layout manager.
Declaration
var selectedRanges: [NSValue] { get set }Discussion
The objects in the array are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length
See Also
Managing the selection
setSelectedRange(_:)setSelectedRange(_:affinity:stillSelecting:)setSelectedRanges(_:affinity:stillSelecting:)selectionAffinityselectionGranularityinsertionPointColorupdateInsertionPointStateAndRestartTimer(_:)selectedTextAttributesmarkedTextAttributeslinkTextAttributescharacterIndexForInsertion(at:)updateCandidates()