Diagram::ShouldAddShapeForElement Method (ModelElement^)

 

Verifies whether a shape can have a child shape assigned to it.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

protected:
virtual bool ShouldAddShapeForElement(
	ModelElement^ element
) override

Parameters

element
Type: Microsoft.VisualStudio.Modeling::ModelElement^

The shape to check.

Return Value

Type: System::Boolean

true if the shape can have the child shape added to it; otherwise, false.

This method is called when a user drags a shape onto another shape or copies and pastes a shape onto another shape.

Return to top
Show: