SelectionOperations Class
Provides standard operations that control the programmatic selection of objects in a designer.
Inheritance Hierarchy
System.Object
Microsoft.Windows.Design.Interaction.SelectionOperations
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public NotInheritable Class SelectionOperations
public static class SelectionOperations
public ref class SelectionOperations abstract sealed
[<AbstractClass>]
[<Sealed>]
type SelectionOperations = class end
public final class SelectionOperations
The SelectionOperations type exposes the following members.
Methods
Name | Description | |
---|---|---|
Select | Processes a request to programmatically select an object in the designer. | |
SelectOnly | Processes a request to programmatically select a single object in the designer. | |
Subscribe | Adds a callback method that is invoked when the selection in the editing context changes. | |
Toggle | Processes a request to programmatically toggle the selection state of an object in the designer. | |
Union | Processes a request to programmatically add an object in the designer to the existing selection. | |
Unsubscribe | Removes a callback method so that it is not invoked when the selection in the editing context changes. |
Top
Remarks
You can use different selection operations when you are selecting objects in the designer programmatically.
The concept of selection is different for different types of designers. When a user selects objects in a designer, there are some standard behaviors the designer should exhibit. For example, the user should be able to select an object, select multiple objects, deselect objects, and select all objects. You can use extensibility to control how the user selects objects in the designer.
Note
Other types of selection that are not covered here include text selection, where a range of text on an object is selected, and point selection, where one or more points on a curve are selected. Complex selection patterns, such as dragging a rectangle to select several objects, are handled by the TaskProvider providers of those objects.
When multiple objects are selected in a designer, one object is the primary selection object. The primary selection object is often used as a key for other behaviors. For example, to align all selected objects to the left, the primary selection object determines where to align the objects.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace