ShapeElement.CoerceSelection(DiagramItem, DiagramClientView, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows a shape to change the selected items. Called from the select action.
public:
virtual void CoerceSelection(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ item, Microsoft::VisualStudio::Modeling::Diagrams::DiagramClientView ^ view, bool isAddition);
public virtual void CoerceSelection (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem item, Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView view, bool isAddition);
abstract member CoerceSelection : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * bool -> unit
override this.CoerceSelection : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem * Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView * bool -> unit
Public Overridable Sub CoerceSelection (item As DiagramItem, view As DiagramClientView, isAddition As Boolean)
Parameters
- item
- DiagramItem
Diagram item that's being affected.
- view
- DiagramClientView
View that we're operating on.
- isAddition
- Boolean
Whether selection is being added or removed.