Instance Method

selectionForRect:

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

Declaration

iOS, Mac Catalyst
- (PDFSelection *)selectionForRect:(CGRect)rect;
macOS
- (PDFSelection *)selectionForRect:(NSRect)rect;

See Also

Working with Selections

- 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.

- selectionForRange:

Returns the text contained within the specified range.