This topic has not yet been rated - Rate this topic

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)
protected virtual bool ShouldAddShapeForElement(
	ModelElement element
)

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.

For more information, see FixUpChildShapes(ModelElement).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ