Instance Method


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


iOS, Mac Catalyst
- (PDFSelection *)selectionForLineAtPoint:(CGPoint)point;
- (PDFSelection *)selectionForLineAtPoint:(NSPoint)point;


Returns NULL if no line of text contains point.

Use this method to respond to a triple-click.

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.

- selectionFromPoint:toPoint:

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

- selectionForRange:

Returns the text contained within the specified range.