SelectionTypes Enumeration
Defines identifiers that indicate the type of a selection.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
[Visual Basic] <Flags> <Serializable> <ComVisible(True)> Public Enum SelectionTypes [C#] [Flags] [Serializable] [ComVisible(true)] public enum SelectionTypes [C++] [Flags] [Serializable] [ComVisible(true)] __value public enum SelectionTypes [JScript] public Flags Serializable ComVisible(true) enum SelectionTypes
Remarks
Components of a designer document can be selected using the SetSelectedComponents method of the ISelectionService. Some types of actions can operate on a selected component or group of selected components. The ISelectionService keeps track of the selection type of the current selection. These selection type identifiers indicate whether the selection was completed using a single click, a mouse down or mouse up selection, whether the selection should replace the previous selection, or use the default selection mode.
Use the SelectionTypes enumeration to specify the type of a selection when setting a new selection using the SetSelectedComponents method.
Members
| Member name | Description | Value |
|---|---|---|
| Click | A selection that occurs when a user clicks a component. If the newly selected component is already selected, it is promoted to be the primary selected component rather than being deselected. | 16 |
| MouseDown | A selection that occurs when the user presses on the mouse button when the mouse pointer is over a component. If the component under the pointer is already selected, it is promoted to become the primary selected component rather than being deselected. | 4 |
| MouseUp | A selection that occurs when the user releases the mouse button immediately after a component has been selected. If the newly selected component is already selected, it is promoted to be the primary selected component rather than being deselected. | 8 |
| Normal | A regular selection. The selection service responds to the control and shift keys to support adding or removing components to or from the selection. | 1 |
| Replace | A selection that occurs when the content of a selection is replaced. The selection service replaces the current selection with the replacement. | 2 |
| Valid | Identifies the valid selection types as Normal, Replace, MouseDown, MouseUp, or Click. | 31 |
Requirements
Namespace: System.ComponentModel.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)
See Also
System.ComponentModel.Design Namespace | SetSelectedComponents | ISelectionService