Diagram.ShouldAddShapeForElement Method
Verifies whether a shape can have a child shape assigned to it.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Parameters
- element
- Type: Microsoft.VisualStudio.Modeling.ModelElement
The shape to check.
Return Value
Type: System.Booleantrue if the shape can have the child shape added to it; otherwise, false.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.