ShapeElement.ShouldAddShapeForElement(ModelElement) Method
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 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);
protected virtual bool ShouldAddShapeForElement(Microsoft.VisualStudio.Modeling.ModelElement element);
abstract member ShouldAddShapeForElement : Microsoft.VisualStudio.Modeling.ModelElement -> bool
override this.ShouldAddShapeForElement : Microsoft.VisualStudio.Modeling.ModelElement -> bool
Protected Overridable Function ShouldAddShapeForElement (element As ModelElement) As Boolean
- element
- ModelElement
The ModelElement recently added to the model.
true if a child ShapeElement should be added.
Default behavior is to route this call to the current Diagram.
Product | Versions |
---|---|
Visual Studio SDK | 2017, 2019, 2022 |