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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public ReadOnly Property RelativeChildShapes As LinkedElementCollection(Of ShapeElement)
Get
public LinkedElementCollection<ShapeElement> RelativeChildShapes { get; }
public:
property LinkedElementCollection<ShapeElement^>^ RelativeChildShapes {
LinkedElementCollection<ShapeElement^>^ get ();
}
member RelativeChildShapes : LinkedElementCollection<ShapeElement>
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
- 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.