EmptySelection 类

处理空选择内容。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.SelectionState
    Microsoft.VisualStudio.Modeling.Diagrams.EmptySelection

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
Public Class EmptySelection _
    Inherits SelectionState
public class EmptySelection : SelectionState

EmptySelection 类型公开以下成员。

构造函数

  名称 说明
公共方法 EmptySelection 构造函数

页首

属性

  名称 说明
公共属性 ActualSelection 获取实际选择。 (继承自 SelectionState。)
公共属性 CoercedSelection 我们需要在此处返回空集合以导致强制失败。这有点儿一些古怪,但是,SelectionState.IsCoercionFailure 必要的特定实现。 (重写 SelectionState.CoercedSelection。)
受保护的属性 CoercedSelectionCache (继承自 SelectionState。)
公共属性 CoercedSelectionModelElements CoercedSelection 包括 Pels 和 已经不包括并与其有关联的 Mels 是可能的。此方法返回列表,该列表替换具有其关联 Mels 的强制选择内容中的Pels,以及不具有 pels 的强制选择内容中的 Mels。 (继承自 SelectionState。)
公共属性 CoercedSelectionPresentationElements CoercedSelection 包括 Pels 和 已经不包括并与其有关联的 Mels 是可能的。此方法返回排除任何 Mels 的集合。 (继承自 SelectionState。)
公共属性 CoercionCompliantSelection 返回符合强制规则的选择对象的列表。如果这种选择是强制性的,则返回该强制性选择。如果有强制失败列表将为空。如果没有强制规则( !IsCoercable ),则返回实际的选择内容。 (继承自 SelectionState。)
公共属性 HasCoercion 确定这种选择是否具备有效强制。 (继承自 SelectionState。)
公共属性静态成员 Instance 单一 EmptySelection 实例
公共属性 IsActualSelectionMixed 如果在实际选定的所有选定的对象的类型相同,则为 true。 (继承自 SelectionState。)
公共属性 IsCoercedSelectionMixed 如果在强制选定的所有选定的对象的类型相同,则为 true。 (继承自 SelectionState。)
公共属性 IsCoercible 确定这种实际选择是否可以强制。Togegher IsCoercible 和 IsCoercionFailure 区别强制失败和无强制可用。 (继承自 SelectionState。)
公共属性 IsCoercionFailure Togegher IsCoercible 和 IsCoercionFailure 区别强制失败和无强制可用。 (继承自 SelectionState。)

页首

方法

  名称 说明
受保护的方法 CacheCoercedSelection 缓存指定的集合。 (继承自 SelectionState。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 IdentifyCommandsToBeFilteredOutForMultipleSelection 对此选择状态,重写以验证在单个选择 scenario 中无效的命令。 (继承自 SelectionState。)
受保护的方法 IdentifyCommandsToBeFilteredOutForSingleSelection 对此选择状态,重写以验证在单个选择 scenario 中无效的命令。 (继承自 SelectionState。)
公共方法 Initialize 指定这种实际选择以操作。 (继承自 SelectionState。)
公共方法 IsApplicable 确定使用特定选项这种选择状态是否适用。 (重写 SelectionState.IsApplicable(ICollection)。)
公共方法 IsCommandToBeFilteredOut 如果不应启用此选择状态下的指定命令,使为 true。为强制选择计算方法。 (继承自 SelectionState。)
受保护的方法 IsCommandToBeFilteredOutForMultipleSelection 如果不应启用此选择状态下的指定命令,使为 true。为强制选择计算方法。 (继承自 SelectionState。)
受保护的方法 IsCommandToBeFilteredOutForSingleSelection 如果不应启用此选择状态下的指定命令,使为 true。为强制选择计算方法。 (继承自 SelectionState。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间