One Logo Pool Ball
PDFKit · IOS API REFERENCE

PDFSelection

class · iOS 11.0+ · SDK 27.1

class PDFSelection

Members (17)

method · iOS 11.0+

add

TypeScript
add(selection: PDFSelection): void
Swift declaration
func add(_ selection: PDFSelection)
method · iOS 11.0+

add

TypeScript
add83020(selections: Array<PDFSelection>): void
Swift declaration
func add(_ selections: [PDFSelection])
method · iOS 11.0+

bounds

TypeScript
bounds(page: PDFPage): { x: number; y: number; width: number; height: number }
Swift declaration
func bounds(for page: PDFPage) -> CGRect
method · iOS 11.0+

draw

TypeScript
drawForActive(page: PDFPage, active: boolean): void
Swift declaration
func draw(for page: PDFPage, active: Bool)
method · iOS 11.0+

draw

TypeScript
drawForWithActive(page: PDFPage, box: PDFDisplayBox, active: boolean): void
Swift declaration
func draw(for page: PDFPage, with box: PDFDisplayBox, active: Bool)
method · iOS 11.0+

extend

TypeScript
extendAtEnd(succeed: number): void
Swift declaration
func extend(atEnd succeed: Int)
method · iOS 11.0+

extend

TypeScript
extendAtStart(precede: number): void
Swift declaration
func extend(atStart precede: Int)
method · iOS 11.0+

extendForLineBoundaries

TypeScript
extendForLineBoundaries(): void
Swift declaration
func extendForLineBoundaries()
init · iOS 11.0+

init

TypeScript
static init(document: PDFDocument): PDFSelection
Swift declaration
init(document: PDFDocument)
method · iOS 11.0+

numberOfTextRanges

TypeScript
numberOfTextRanges(page: PDFPage): number
Swift declaration
func numberOfTextRanges(on page: PDFPage) -> Int
method · iOS 11.0+

range

TypeScript
range(index: number, page: PDFPage): SDKHandle
Swift declaration
func range(at index: Int, on page: PDFPage) -> NSRange
method · iOS 11.0+

selectionsByLine

TypeScript
selectionsByLine(): Array<PDFSelection>
Swift declaration
func selectionsByLine() -> [PDFSelection]
get · iOS 11.0+

attributedString

TypeScript
get attributedString(): (_Foundation_NSAttributedString) | null
Swift declaration
var attributedString: NSAttributedString? { get }
get · iOS 11.0+

color

TypeScript
get color(): (_UIKit_UIColor) | null
Swift declaration
@NSCopying var color: UIColor? { get set }
set · iOS 11.0+

color

TypeScript
set color(value: (_UIKit_UIColor) | null)
Swift declaration
@NSCopying var color: UIColor? { get set }
get · iOS 11.0+

pages

TypeScript
get pages(): Array<PDFPage>
Swift declaration
var pages: [PDFPage] { get }
get · iOS 11.0+

string

TypeScript
get string(): (string) | null
Swift declaration
var string: String? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PDFSelection.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All PDFKit types →