ShapeElement.ShouldAddShapeForElement Method
Determines whether a shape should be created to represent a given domain class instance on the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Protected Overridable Function ShouldAddShapeForElement ( _
element As ModelElement _
) As Boolean
protected virtual bool ShouldAddShapeForElement(
ModelElement element
)
protected:
virtual bool ShouldAddShapeForElement(
ModelElement^ element
)
abstract ShouldAddShapeForElement :
element:ModelElement -> bool
override ShouldAddShapeForElement :
element:ModelElement -> bool
protected function ShouldAddShapeForElement(
element : ModelElement
) : boolean
Parameters
element
Type: Microsoft.VisualStudio.Modeling.ModelElementThe domain class instance.
Return Value
Type: Boolean
true if the domain class instance should be represented with a shape element; otherwise, false.
Remarks
For more information, see FixUpChildShapes.
.NET Framework Security
- 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.