由设计图面调用以允许选择筛选
命名空间: Microsoft.VisualStudio.Modeling.Diagrams
程序集: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
语法
声明
Public Overridable Function GetCompliantSelection ( _
currentSelection As SelectedShapesCollection, _
proposedItemsToAdd As DiagramItemCollection, _
proposedItemsToRemove As DiagramItemCollection, _
primaryItem As DiagramItem _
) As Boolean
public virtual bool GetCompliantSelection(
SelectedShapesCollection currentSelection,
DiagramItemCollection proposedItemsToAdd,
DiagramItemCollection proposedItemsToRemove,
DiagramItem primaryItem
)
参数
- currentSelection
类型:Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
[in] 在添加或移除任何 ShapeElements 前进行当前选择。
- proposedItemsToAdd
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
[in/out] 建议的 DiagramItems 将添加到该选择。
- proposedItemsToRemove
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
[in/out] 建议的 DiagramItems 将从该选择移除。
- primaryItem
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
[in/out] 建议的 DiagramItem 成为该选择的主要的 DiagramItem。null 值表示该结果选择中最后的 DiagramItem 应假定为主 DiagramItem。
返回值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。