ShapeElement.ChooseParentShape(ShapeElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.