GeneralDiagramSelectionRules::GetCompliantSelection Method (SelectedShapesCollection^, DiagramItemCollection^, DiagramItemCollection^, DiagramItem^)
Visual Studio 2015
Called by the design surface to allow selection filtering
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual bool GetCompliantSelection( SelectedShapesCollection^ currentSelection, DiagramItemCollection^ proposedItemsToAdd, DiagramItemCollection^ proposedItemsToRemove, DiagramItem^ primaryItem ) override
Parameters
- currentSelection
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::SelectedShapesCollection^
[in] The current selection before any ShapeElements are added or removed.
- proposedItemsToAdd
- Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramItemCollection^
- proposedItemsToRemove
- Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramItemCollection^
- primaryItem
- Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramItem^
- proposedShapesToAdd
[in/out] The proposed DiagramItems to be added to the selection.
- proposedShapesToRemove
[in/out] The proposed DiagramItems to be removed from the selection.
- primaryShape
[in/out] The proposed DiagramItem to become the primary DiagramItem of the selection. A null value signifies that the last DiagramItem in the resultant selection should be assumed as the primary DiagramItem.
Return Value
Type: System::Boolean
Show: