selectedRange
Returns the range of selected text.
Declaration
- (NSRange) selectedRange;Return Value
The range of selected text.
Discussion
The returned range measures from the start of the receiver’s text storage. If there is no selection, the return value’s location is NSNotFound, and its length is 0.