Diagram.IsSelected Method
Verifies whether a shape is selected in a diagram view.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣言
Public Function IsSelected ( _
shape As ShapeElement _
) As Boolean
public bool IsSelected(
ShapeElement shape
)
public:
bool IsSelected(
ShapeElement^ shape
)
member IsSelected :
shape:ShapeElement -> bool
public function IsSelected(
shape : ShapeElement
) : boolean
Parameters
- shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The shape to check.
Return Value
Type: System.Boolean
true if the shape is selected in a diagram view; otherwise, false.
.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.