Returns the range of the individual text block that contains the given location.
SDK
- macOS 10.4+
Framework
- App
Kit
Declaration
- (NSRange)rangeOfTextBlock:(NSText Block *)block atIndex:(NSUInteger)location;
Parameters
block
The text block.
location
The location in the text block.
Return Value
The range of the text block containing the location.