Gets the parent shape element. To appear on a diagram, a shape or connector must have a parent.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
A diagram does not have a parent.
A shape can have a null parent while part of a diagram is being constructed.
To get quickly to the diagram at the top of the tree, use Diagram.
- 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.