共用方式為


ShapeElement.ChooseParentShape(ShapeElement) Method

Definition

Called by ShapeElement.FixUpChildShapes() to determine which shape should be the parent shape for the new child shape. By default, this ShapeElement will be the parent, but there may be cases where a different shape should be.

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

Parameters

childShape
ShapeElement

The new child shape that needs to be wired up.

Returns

The shape that should be a parent shape for the child.

Applies to