处理未被其他选择内容状态覆盖的常规选择内容。
继承层次结构
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.SelectionState
Microsoft.VisualStudio.Modeling.Diagrams.GeneralSelection
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Class GeneralSelection _
Inherits SelectionState
public class GeneralSelection : SelectionState
GeneralSelection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
GeneralSelection | 构造函数 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
ActualSelection | 获取实际选择。 (继承自 SelectionState。) |
![]() |
CoercedSelection | 获取将强制规则应用于实际选择的强制选择。注意:返回值可以为 null。空强制转换表示选中状态不定义强制规则 (即一个多 seleciton 包括由 GeneralSelection 连接器只有注释状态中,无法定义任何强制规则,因此,seleciton 的强制为空)。如果定义了选择内容状态的强制规则,但是强制失败(与包括属于不同区域的多个组件的选择内容的情况相同),则轻质选择内容存在但为空。这些帮助器可用于强制神秘选择展开结果:* - IsCoercible true,则 seleciton 可以强制 (即选择状态定义强制规则)。CoercedSelection 将返回一个集合,但有可能为空。* - IsCoercionFailure - 如果该实际选择可以是强制性的,但(由于强制规则的原因)强制失败,则为 true。CoercedSelection 将为空集合。* - HasCoercion - 如果其实际选择为强制性的,且强制不会失败,则为 true。CoercedSelection 将返回一个非空集合。 (继承自 SelectionState。) |
![]() |
CoercedSelectionCache | (继承自 SelectionState。) |
![]() |
CoercedSelectionModelElements | CoercedSelection 包括 Pels 和 已经不包括并与其有关联的 Mels 是可能的。此方法返回列表,该列表替换具有其关联 Mels 的强制选择内容中的Pels,以及不具有 pels 的强制选择内容中的 Mels。 (继承自 SelectionState。) |
![]() |
CoercedSelectionPresentationElements | CoercedSelection 包括 Pels 和 已经不包括并与其有关联的 Mels 是可能的。此方法返回排除任何 Mels 的集合。 (继承自 SelectionState。) |
![]() |
CoercionCompliantSelection | 返回符合强制规则的选择对象的列表。如果这种选择是强制性的,则返回该强制性选择。如果有强制失败列表将为空。如果没有强制规则( !IsCoercable ),则返回实际的选择内容。 (继承自 SelectionState。) |
![]() |
HasCoercion | 确定这种选择是否具备有效强制。 (继承自 SelectionState。) |
![]() |
IsActualSelectionMixed | 如果在实际选定的所有选定的对象的类型相同,则为 true。 (继承自 SelectionState。) |
![]() |
IsCoercedSelectionMixed | 如果在强制选定的所有选定的对象的类型相同,则为 true。 (继承自 SelectionState。) |
![]() |
IsCoercible | 确定这种实际选择是否可以强制。Togegher IsCoercible 和 IsCoercionFailure 区别强制失败和无强制可用。 (继承自 SelectionState。) |
![]() |
IsCoercionFailure | Togegher IsCoercible 和 IsCoercionFailure 区别强制失败和无强制可用。 (继承自 SelectionState。) |
页首
方法
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。