ShapeElement.Diagram Property
Gets the diagram to which the shape belongs.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public ReadOnly Property Diagram As Diagram
Get
public Diagram Diagram { get; }
public:
property Diagram^ Diagram {
Diagram^ get ();
}
member Diagram : Diagram
function get Diagram () : Diagram
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.Diagram
The diagram to which the shape belongs; otherwise, nulla null reference (Nothing in Visual Basic) if the shape does not belong to a diagram.
.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.