ShapeElement.CoerceSelection Method
Allows a shape to determine which other shapes are selected.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Overridable Sub CoerceSelection ( _
item As DiagramItem, _
view As DiagramClientView, _
isAddition As Boolean _
)
public virtual void CoerceSelection(
DiagramItem item,
DiagramClientView view,
bool isAddition
)
public:
virtual void CoerceSelection(
DiagramItem^ item,
DiagramClientView^ view,
bool isAddition
)
abstract CoerceSelection :
item:DiagramItem *
view:DiagramClientView *
isAddition:bool -> unit
override CoerceSelection :
item:DiagramItem *
view:DiagramClientView *
isAddition:bool -> unit
public function CoerceSelection(
item : DiagramItem,
view : DiagramClientView,
isAddition : boolean
)
Parameters
item
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe diagram.
view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientViewThe diagram view.
isAddition
Type: System.Booleantrue to select a shape; false to remove selection from a shape.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.