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

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

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace