EmptySelection 类

处理空选择。

继承层次结构

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

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

语法

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

EmptySelection 类型公开以下成员。

构造函数

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

页首

属性

  名称 说明
公共属性 ActualSelection 获取实际选择。 (继承自 SelectionState。)
公共属性 CoercedSelection 我们需要返回空集合此处导致强制失败。这有点儿多的,但是, SelectionState.IsCoercionFailure 必要的特定实现。 (重写 SelectionState.CoercedSelection。)
受保护的属性 CoercedSelectionCache (继承自 SelectionState。)
公共属性 CoercedSelectionModelElements 包含与 Pels 尚未包含的 Pels 和麦 CoercedSelection 是可能的。此方法返回的及其关联的麦替换在被强制的 Pels 的列表,以及从没有 pels 的强制选择的所有麦。 (继承自 SelectionState。)
公共属性 CoercedSelectionPresentationElements 包含与 Pels 尚未包含的 Pels 和麦 CoercedSelection 是可能的。此方法返回排除所有麦的集合。 (继承自 SelectionState。)
公共属性 CoercionCompliantSelection 返回符合强制规则选定对象的列表。如果选定内容 coercable,则被强制的选择将返回;如果具有强制转换失败则该列表将为空。如果不强制规则 (! 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 标识无效的一个选择方案的命令的重写,此选择状态中。 (继承自 SelectionState。)
受保护的方法 IdentifyCommandsToBeFilteredOutForSingleSelection 标识无效的一个选择方案的命令的重写,此选择状态中。 (继承自 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 命名空间