Compartir a través de


Diagram.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.

protected:
 override bool ShouldAddShapeForElement(Microsoft::VisualStudio::Modeling::ModelElement ^ element);
protected override bool ShouldAddShapeForElement (Microsoft.VisualStudio.Modeling.ModelElement element);
override this.ShouldAddShapeForElement : Microsoft.VisualStudio.Modeling.ModelElement -> bool
Protected Overrides Function ShouldAddShapeForElement (element As ModelElement) As Boolean

Parameters

element
ModelElement

The ModelElement recently added to the model.

Returns

true if a child ShapeElement should be added.

Remarks

Default behavior is to return true if this is the drop target diagram.

Applies to