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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'宣告
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.ModelElement
The domain class instance.
Return Value
Type: System.Boolean
true if the domain class instance should be represented with a shape element; otherwise, false.
Remarks
For more information, see FixUpChildShapes(ModelElement).
.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.