Instance Property

pages

Returns the array of pages contained in the selection.

Declaration

var pages: [PDFPage] { get }

Discussion

Pages are sorted by index number.

See Also

Getting Information About a Selection

var string: String?

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

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.