EmptySelection Class
Handles empty selections.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Microsoft.VisualStudio.Modeling.Diagrams::SelectionState
Microsoft.VisualStudio.Modeling.Diagrams::EmptySelection
| Name | Description | |
|---|---|---|
![]() | EmptySelection() | constructor |
| Name | Description | |
|---|---|---|
![]() | ActualSelection | Gets the actual selection.(Inherited from SelectionState.) |
![]() | CoercedSelection | We need to return an empty collection here to cause a coercion failure. This is a bit odd, but necessary given implementation of SelectionState.IsCoercionFailure.(Overrides SelectionState::CoercedSelection.) |
![]() | CoercedSelectionCache | (Inherited from SelectionState.) |
![]() | CoercedSelectionModelElements | It is possible for the CoercedSelection to include Pels and Mels which are associated with Pels that are not already included. This method returns a list that replaces the Pels in the coerced selection with their associated Mels, plus any mels from the coerced selection that did not have pels.(Inherited from SelectionState.) |
![]() | CoercedSelectionPresentationElements | It is possible for the CoercedSelection to include Pels and Mels which are associated with Pels that are not already included. This method returns a collection which excludes any Mels.(Inherited from SelectionState.) |
![]() | CoercionCompliantSelection | Returns the list of selected objects which comply with the coercion rules. If the selection is coercable, then the coerced selection will be returned; if there is a coercion failure the list will be empty. If there are no coercion rules (!IsCoercable), then the actual selection is returned.(Inherited from SelectionState.) |
![]() | HasCoercion | Determines if the selection has a valid coercion.(Inherited from SelectionState.) |
![]() ![]() | Instance | Singleton EmptySelection instance |
![]() | IsActualSelectionMixed | True if all selected objects in the actual selection are of the same type.(Inherited from SelectionState.) |
![]() | IsCoercedSelectionMixed | True if all selected objects in the coerced selection are of the same type.(Inherited from SelectionState.) |
![]() | IsCoercible | Determines if the actual selection can be coerced. Togegher IsCoercible and IsCoercionFailure distinguish between coercion failure, and no coercion available.(Inherited from SelectionState.) |
![]() | IsCoercionFailure | Togegher IsCoercible and IsCoercionFailure distinguish between coercion failure, and no coercion available.(Inherited from SelectionState.) |
| Name | Description | |
|---|---|---|
![]() | CacheCoercedSelection(ICollection^) | Cache the specified collection.(Inherited from SelectionState.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IdentifyCommandsToBeFilteredOutForMultipleSelection(CommandIdCollection^) | Override to identify the commands which are not valid in a single selection scenario, for this selection state.(Inherited from SelectionState.) |
![]() | IdentifyCommandsToBeFilteredOutForSingleSelection(CommandIdCollection^) | Override to identify the commands which are not valid in a single selection scenario, for this selection state.(Inherited from SelectionState.) |
![]() | Initialize(ICollection^) | specifies the actual selection to operate upon.(Inherited from SelectionState.) |
![]() | IsApplicable(ICollection^) | Determines if this selection state is appropriate for use with the specified selection.(Overrides SelectionState::IsApplicable(ICollection^).) |
![]() | IsCommandToBeFilteredOut(CommandID^) | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection.(Inherited from SelectionState.) |
![]() | IsCommandToBeFilteredOutForMultipleSelection(CommandID^) | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection.(Inherited from SelectionState.) |
![]() | IsCommandToBeFilteredOutForSingleSelection(CommandID^) | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection.(Inherited from SelectionState.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




