This topic has not yet been rated - Rate this topic

Diagram.ShouldAddShapeForElement Method

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

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
protected override bool ShouldAddShapeForElement(
	ModelElement element
)

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ