ShapeElement.ParentShape Property

Gets the parent shape element. To appear on a diagram, a shape or connector must have a parent.

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

Syntax

'Declaration
Public ReadOnly Property ParentShape As ShapeElement
'Usage
Dim instance As ShapeElement 
Dim value As ShapeElement 

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

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement

Remarks

If ParentShape is not null, this shape element is either in the 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.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace