CPDFSelection Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | CPDFSelection.h |
Overview
A CPDFSelection object identifies a contiguous or noncontiguous selection of text in a PDF document.
page
Returns the page where the selection is located.
@property (nonatomic, readonly) CPDFPage *pageDiscussion
Returns the page where the selection is located.
Declared In
CPDFSelection.h
bounds
Returns the bounds of the selection on the page.
@property (nonatomic, readonly) CGRect boundsDiscussion
Returns the bounds of the selection on the page.
The selection rectangle is given in page space. Page space is a coordinate system with the origin at the lower-left corner of the current page.
Declared In
CPDFSelection.h
selectionsByLine
Returns an array of selections, one for each line of text covered by the receiver.
@property (nonatomic, readonly) NSArray<CPDFSelection*> *selectionsByLineDiscussion
Returns an array of selections, one for each line of text covered by the receiver.
If you call this method on a CPDFSelection object that represents a paragraph, for example, selectionsByLine returns an array that contains one CPDFSelection object for each line of text in the paragraph.
Declared In
CPDFSelection.h
– string
Returns an NSString object representing the text contained in the selection (may contain linefeed characters).
- (NSString *)stringDiscussion
Returns an NSString object representing the text contained in the selection (may contain linefeed characters).
Declared In
CPDFSelection.h
markupType
The markup type used for real-time selection preview rendering.
@property (nonatomic, assign) CPDFMarkupType markupTypeDiscussion
The markup type used for real-time selection preview rendering.
Set this property to control the visual style of the selection preview. Supported types include highlight, underline, strikeout, and squiggly. The default value is \c CPDFMarkupTypeHighlight.
See Also
Declared In
CPDFSelection.h
selectionColor
The color used to long press to select.
@property (nonatomic, strong) CPDFKitPlatformColor *selectionColorDiscussion
The color used to long press to select.
Default is a light blue color.
Declared In
CPDFSelection.h