RelativeChildShapes Property
TOC
Collapse the table of content
Expand the table of content

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)

public LinkedElementCollection<ShapeElement> RelativeChildShapes { get; }

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();

Return to top
Show:
© 2016 Microsoft