Share via


ShapeElement.FixUpChildShapes(ModelElement) Method

Definition

Called by Diagram.FixUpDiagram() to provide the opportunity to create and/or configure child shapes in response to adding the specified child element to the model.

public:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ FixUpChildShapes(Microsoft::VisualStudio::Modeling::ModelElement ^ childElement);
public virtual Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement FixUpChildShapes (Microsoft.VisualStudio.Modeling.ModelElement childElement);
abstract member FixUpChildShapes : Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
override this.FixUpChildShapes : Microsoft.VisualStudio.Modeling.ModelElement -> Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
Public Overridable Function FixUpChildShapes (childElement As ModelElement) As ShapeElement

Parameters

childElement
ModelElement

The child element recently added to the model.

Returns

The root ShapeElement configured for the given childElement. If no shape was configured, then null is returned.

Remarks

This method calls ShouldAddShapeForElement() to determine if a child ShapeElement should be added automatically to this ShapeElement.

Applies to