Instance Method

rangeOfTextBlock:atIndex:

Returns the range of the individual text block that contains the given location.

Declaration

- (NSRange)rangeOfTextBlock:(NSTextBlock *)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.

See Also

Calculating Ranges

- itemNumberInTextList:atIndex:

Returns the index of the item at the given location within the list.

- rangeOfTextList:atIndex:

Returns the range of the given text list that contains the given location.

- rangeOfTextTable:atIndex:

Returns the range of the given text table that contains the given location