ShapeElement.ShouldAddShapeForElement(ModelElement) Method

Definition

Called by ShapeElement.FixUpChildShapes() to get a value indicating whether a ShapeElement should be created and added as a child of this ShapeElement.

C++
protected:
 virtual bool ShouldAddShapeForElement(Microsoft::VisualStudio::Modeling::ModelElement ^ element);

Parameters

element
ModelElement

The ModelElement recently added to the model.

Returns

true if a child ShapeElement should be added.

Remarks

Default behavior is to route this call to the current Diagram.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022