Diagram.IsSelected(ShapeElement) 方法

定义

获取一个值,该值指示是否在任何关联的 Diagramview 关联中选择指定的 ShapeElement。

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

参数

shape
ShapeElement

要在所有关联的 DiagramViews 中查找的 ShapeElement。

返回

Boolean

如果在任何 Diagramview 关联中选择了指定的 ShapeElement,则为 true。

适用于