Handles empty selections.
Inheritance Hierarchy
System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.SelectionState
    Microsoft.VisualStudio.Modeling.Diagrams.EmptySelection
Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
声明
Public Class EmptySelection _
    Inherits SelectionState
public class EmptySelection : SelectionState
public ref class EmptySelection : public SelectionState
type EmptySelection =  
    class
        inherit SelectionState
    end
public class EmptySelection extends SelectionState
The EmptySelection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | EmptySelection | constructor | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | ActualSelection | Gets the actual selection. (Inherited from SelectionState.) | 
| .gif) | 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.) | 
| .gif) | CoercedSelectionCache | (Inherited from SelectionState.) | 
| .gif) | 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.) | 
| .gif) | 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.) | 
| .gif) | 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.) | 
| .gif) | HasCoercion | Determines if the selection has a valid coercion. (Inherited from SelectionState.) | 
| .gif) .gif) | Instance | Singleton EmptySelection instance | 
| .gif) | IsActualSelectionMixed | True if all selected objects in the actual selection are of the same type. (Inherited from SelectionState.) | 
| .gif) | IsCoercedSelectionMixed | True if all selected objects in the coerced selection are of the same type. (Inherited from SelectionState.) | 
| .gif) | IsCoercible | Determines if the actual selection can be coerced. Togegher IsCoercible and IsCoercionFailure distinguish between coercion failure, and no coercion available. (Inherited from SelectionState.) | 
| .gif) | IsCoercionFailure | Togegher IsCoercible and IsCoercionFailure distinguish between coercion failure, and no coercion available. (Inherited from SelectionState.) | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | CacheCoercedSelection | Cache the specified collection. (Inherited from SelectionState.) | 
| .gif) | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | IdentifyCommandsToBeFilteredOutForMultipleSelection | Override to identify the commands which are not valid in a single selection scenario, for this selection state. (Inherited from SelectionState.) | 
| .gif) | IdentifyCommandsToBeFilteredOutForSingleSelection | Override to identify the commands which are not valid in a single selection scenario, for this selection state. (Inherited from SelectionState.) | 
| .gif) | Initialize | specifies the actual selection to operate upon. (Inherited from SelectionState.) | 
| .gif) | IsApplicable | Determines if this selection state is appropriate for use with the specified selection. (Overrides SelectionState.IsApplicable(ICollection).) | 
| .gif) | IsCommandToBeFilteredOut | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection. (Inherited from SelectionState.) | 
| .gif) | IsCommandToBeFilteredOutForMultipleSelection | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection. (Inherited from SelectionState.) | 
| .gif) | IsCommandToBeFilteredOutForSingleSelection | True if the specified command should not be enabled for this selection state. The method is evaluated for the coerced selection. (Inherited from SelectionState.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | ToString | Returns a string that represents the current object. (Inherited from Object.) | 
Top
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.