Instance Property

string

Returns an NSString object representing the text contained in the selection (may contain linefeed characters).

Declaration

var string: String? { get }

See Also

Getting Information About a Selection

var pages: [PDFPage]

Returns the array of pages contained in the selection.

var attributedString: NSAttributedString?

Returns an NSAttributedString object representing the text contained in the selection (may contain linefeed characters).

func bounds(for: PDFPage) -> CGRect

Returns the bounds of the selection on the specified page.

func selectionsByLine() -> [PDFSelection]

Returns an array of selections, one for each line of text covered by the receiver.

var color: UIColor?

Sets the color used for the drawing of a selection in both active and inactive states.