Instance Method
replaceSelection(_:)replaceSelection:replaceSelection_
Replaces the selection without registering undo.
Declaration
func replaceSelection(_ newSelection: [any GSSelectableElementProtocol])Declaration
- (void) replaceSelection:(NSArray<NSObject<GSSelectableElementProtocol> *> *) newSelection;Declaration
replaceSelection_(newSelection: list[NSObject<GSSelectableElementProtocol>])See Also
Selection
The selected elements in selection order.
The number of selected elements.
Replaces the selection and registers the previous selection for undo.
Adds an element to the selection if it is not already selected.
Adds elements to the selection, preserving their order.
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.