Instance Method

setSelectedDOMRange:affinity:

Selects a range of nodes.

Declaration

- (void)setSelectedDOMRange:(DOMRange *)range affinity:(NSSelectionAffinity)selectionAffinity;

Parameters

range

The range of nodes to select. If range is nil, the current selection is cleared. This method raises a DOMRangeExcepton if the range has been detached or refers to nodes not displayed by the receiver.

selectionAffinity

See the selectionAffinity property for information on selection affinity.

See Also

Selecting Content in the Document

selectedDOMRange

The range of the current selection.

selectionAffinity

The current selection affinity.