GeneralDiagramSelectionRules.GetCompliantSelection 方法
召集人將設計介面往允許選取範圍篩選
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Overrides Function GetCompliantSelection ( _
currentSelection As SelectedShapesCollection, _
proposedItemsToAdd As DiagramItemCollection, _
proposedItemsToRemove As DiagramItemCollection, _
primaryItem As DiagramItem _
) As Boolean
public override bool GetCompliantSelection(
SelectedShapesCollection currentSelection,
DiagramItemCollection proposedItemsToAdd,
DiagramItemCollection proposedItemsToRemove,
DiagramItem primaryItem
)
參數
- currentSelection
型別:Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection
[in]目前的選取項目之前加入或移除任何 ShapeElements。
- proposedItemsToAdd
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
- proposedItemsToRemove
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
- primaryItem
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
傳回值
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。