Diagram (Domain-Specific Language Designer)

In the Domain-Specific Language Designer, you can set properties that govern how diagrams appear in the generated designer. For example, you can specify the default text color to be rendered in the diagram. You can modify diagram properties in the Properties window after you click the Diagram element in the Diagram Element swimlane in the Domain-Specific Language Designer. For more information, see How to: Add a Diagram (DSL Explorer).

The following table lists properties of diagrams:

Property

Description

Default

Fill Color

Fill color for the diagram.

White

Text Color

Color of text rendered on the diagram.

Black

Access Modifier

Determines if the access modifier for the domain class is public or internal.

Public

Custom Attributes

Used to attribute the code generated from this element.

Note   Use the browse button to add an attribute.

For more information, see How to: Edit Attributes on a Diagram Element.

Generates Double Derived

If True, will generate both a base class with all functionality and a partial class to support customization through overrides.

False

Has Custom Constructor

If True, indicates that a custom constructor will be provided in code.

False

Inheritance Modifier

Determines if the inheritance modifier of the .Net class generated from the domain class is none, abstract or sealed.

None

Base Diagram

The base diagram of this diagram.

(none)

Name

The name of this element.

Current name

Namespace

The namespace affiliated with this domain class.

Current namespace

Root Class

The designated root class for this diagram.

Current root class if applicable

Notes

Informal notes associated with this element.

Exposes Fill Color As Property

If True, a domain property has been added to the diagram to allow the fill color to be exposed in the properties window of the generated designer.

False

Exposes Text Color As Property

If True, a domain property has been added to the diagram to allow the text color to be exposed in the properties window of the generated designer.

False

Description

Used to document code and in the UI of the generated designer.

Display Name

The name that will be displayed in the generated designer for this element.

Help Keyword

The optional keyword used to index F1 help for this element.

See Also

Concepts

Element Reference for Domain-Specific Languages

Domain-Specific Language Designer Terminology Overview

Domain-Specific Language Tools Glossary