Share via


GeneralDiagramSelectionRules.GetCompliantSelection Method

Definition

Called by the design surface to allow selection filtering

public:
 override bool GetCompliantSelection(Microsoft::VisualStudio::Modeling::Diagrams::SelectedShapesCollection ^ currentSelection, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ proposedItemsToAdd, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ proposedItemsToRemove, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ primaryItem);
public override bool GetCompliantSelection (Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection currentSelection, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection proposedItemsToAdd, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection proposedItemsToRemove, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem primaryItem);
override this.GetCompliantSelection : Microsoft.VisualStudio.Modeling.Diagrams.SelectedShapesCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> bool
Public Overrides Function GetCompliantSelection (currentSelection As SelectedShapesCollection, proposedItemsToAdd As DiagramItemCollection, proposedItemsToRemove As DiagramItemCollection, primaryItem As DiagramItem) As Boolean

Parameters

currentSelection
SelectedShapesCollection

[in] The current selection before any ShapeElements are added or removed.

proposedItemsToAdd
DiagramItemCollection
proposedItemsToRemove
DiagramItemCollection
primaryItem
DiagramItem

Returns

true if some or all of the selection was accepted; false if the entire selection proposal was rejected. If false, appropriate feedback will be given to the user to indicate that the selection was rejected.

Applies to