ShapeElement.RelativeChildShapes Property

The list of shapes that are part of this shape, but can appear outside the boundaries of this shape.

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

Syntax

'Declaration
Public ReadOnly Property RelativeChildShapes As LinkedElementCollection(Of ShapeElement)
public LinkedElementCollection<ShapeElement> RelativeChildShapes { get; }
public:
property LinkedElementCollection<ShapeElement^>^ RelativeChildShapes {
    LinkedElementCollection<ShapeElement^>^ get ();
}
member RelativeChildShapes : LinkedElementCollection<ShapeElement> with get
function get RelativeChildShapes () : LinkedElementCollection<ShapeElement>

Property Value

Type: Microsoft.VisualStudio.Modeling.LinkedElementCollection<ShapeElement>

Remarks

Relative child shapes are used to display ports, labels and image fields. When the user moves the parent shape, the children move with it, but they can be outside the parent shape’s bounding box – unlike nested child shapes.

The ParentShapeof every child shape is this ShapeElement.

Child shapes are usually painted in the order of the list, so that the last item on the list appears on top of the others. Relative child shapes are painted on top of nested child shapes. If you change the order of the list, call:

shape.Diagram.NeedsRenumber = true; shape.Invalidate();

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

NestedChildShapes

ParentShape

BoundingBox

IsRelativeChild