Share via


Diagram.IsSelected(ShapeElement) Method

Definition

Gets a value indicating whether the specified ShapeElement is selected in any associated DiagramView.

public:
 bool IsSelected(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape);
public bool IsSelected (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape);
member this.IsSelected : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> bool
Public Function IsSelected (shape As ShapeElement) As Boolean

Parameters

shape
ShapeElement

The ShapeElement to look for in the selections of all associated DiagramViews.

Returns

true if the specified ShapeElement is selected in any DiagramView.

Applies to