This documentation is archived and is not being maintained.
Selection Class
Visual Studio 2010
Defines a selection of objects that are published as a ContextItem in the EditingContext.
System::Object
System.Activities.Presentation::ContextItem
System.Activities.Presentation.View::Selection
System.Activities.Presentation::ContextItem
System.Activities.Presentation.View::Selection
Assembly: System.Activities.Presentation (in System.Activities.Presentation.dll)
The Selection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Selection() | Creates an empty Selection object. |
![]() | Selection(IEnumerable) | Creates a Selection object with the specified objects selected. |
![]() | Selection(array<ModelItem>) | Creates a Selection object with the specified objects selected. |
![]() | Selection(IEnumerable<ModelItem>) | Creates a Selection object with the specified objects selected. |
![]() | Selection(IEnumerable, Predicate<ModelItem>) | Creates a Selection object with the specified objects selected. |
![]() | Selection(IEnumerable<ModelItem>, Predicate<ModelItem>) | Creates a Selection object with the specified objects selected. |
| Name | Description | |
|---|---|---|
![]() | ItemType | Returns the item type for this editing context item. (Overrides ContextItem::ItemType.) |
![]() | PrimarySelection | Returns the primary selection. |
![]() | SelectedObjects | The enumeration of selected objects. |
![]() | SelectionCount | The number of objects that are currently selected in this selection. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnItemChanged | Represents a method that is called on the context item before it is stored in the context item manager. The previous item in the context item manager is passed as a parameter. (Inherited from ContextItem.) |
![]() ![]() | Select | A selection helper method that takes the existing selection in the context and selects an item into it. If the item is already in the selection, the selection is preserved and the item is promoted to the primary selection. |
![]() ![]() | SelectOnly | A selection helper method that sets an item into the selection. Any existing items are deselected. |
![]() ![]() | Subscribe | A helper method that subscribes to selection change events. |
![]() ![]() | Toggle | A selection helper method that takes the existing selection in thecontext and creates a new selection that contains the toggled state of the item. If the item is to be added to the selection, it is added as the primary selection. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | Union | A selection helper method that takes the existing selection in the context and creates a new selection that contains the original selection and the specified item to add. If the specified item to add is already in the original selection, it is promoted to the primary selection. |
![]() ![]() | Unsubscribe | A helper method that removes a previously added selection change event. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
