ShapeElement.ShouldAddShapeForElement Method
Determines whether a shape should be created to represent a given domain class instance on the diagram.
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 domain class instance.
Return Value
Type: System.Booleantrue if the domain class instance should be represented with a shape element; otherwise, false.
For more information, see FixUpChildShapes(ModelElement).
- 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.