ShapeElement.Diagram Property

Gets the diagram to which the shape belongs.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
Public ReadOnly Property Diagram As Diagram
'使用
Dim instance As ShapeElement
Dim value As Diagram

value = instance.Diagram
public Diagram Diagram { get; }
public:
property Diagram^ Diagram {
    Diagram^ get ();
}
public function get Diagram () : Diagram

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram

The diagram to which the shape belongs; otherwise, a null reference (Nothing in Visual Basic) if the shape does not belong to a diagram.

Permissions

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace