ShapeElement::ParentShape Property
Visual Studio 2015
Gets the parent shape element. To appear on a diagram, a shape or connector must have a parent.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^If ParentShape is not null, this shape element is either in the P:Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement.nestedChildShapes or the RelativeChildShapes of its parent; and either IsNestedChildor IsRelativeChild is true.
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.
Show: