Instance Property

currentSelection

The current selection.

Declaration

@property(nonatomic, strong) PDFSelection *currentSelection;

Discussion

Returns NULL if no selection exists.

Note that this method returns the actual instance of the current PDFSelection object. Therefore, if you want to modify it, you should make a copy of the returned selection and modify that, instead.

See Also

Handling Selections

- setCurrentSelection:animate:

Sets the current selection, in an animated way, if desired.

- selectAll:

Selects all text in the document.

- clearSelection

Clears the selection.

- copy:

Copies the text in the selection, if any, to the Pasteboard.

- scrollSelectionToVisible:

Scrolls the view until the selection is visible.

highlightedSelections

Returns the array of selections that are highlighted using setHighlightedSelections.