Instance Method

selectionForRange:

Returns the text contained within the specified range.

Declaration

- (PDFSelection *)selectionForRange:(NSRange)range;

Discussion

This method raises an exception if the range length is 0 or if either end of the range is outside the range of characters on the page.

See Also

Working with Selections

- selectionForRect:

Returns the text enclosed within the specified rectangle, expressed in page (user) coordinates.

- selectionForWordAtPoint:

Returns the whole word that includes the specified point.

- selectionForLineAtPoint:

Returns the whole line of text that includes the specified point.

- selectionFromPoint:toPoint:

Returns the text between the two specified points in page space.