Instance Method
setSelectionUndo(_:)setSelectionUndo:setSelectionUndo_
Replaces the selection and registers the previous selection for undo.
Declaration
func setSelectionUndo(_ selection: NSOrderedSet)Declaration
- (void) setSelectionUndo:(NSOrderedSet<NSObject<GSSelectableElementProtocol> *> *) selection;Declaration
setSelectionUndo_(selection: NSOrderedSet<NSObject<GSSelectableElementProtocol> *>)Parameters
selectionThe new selection.
See Also
Selection
The selected elements in selection order.
The number of selected elements.
Adds an element to the selection if it is not already selected.
Adds elements to the selection, preserving their order.
Replaces the selection without registering undo.
Removes the selected element at an index.
Removes an element from the selection.
Removes elements from the selection.
Clears the selection without registering undo.
Clears the selection and registers the previous selection for undo.
Whether an element is selected.