次の方法で共有


ShapeElement.CoerceSelection(DiagramItem, DiagramClientView, Boolean) Method

Definition

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.

Applies to