Properties of Diagrams

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Properties of Diagrams.

You can set properties that specify how diagrams will appear in the generated designer. For example, you can specify a default color for text in the diagram.

For more information, see How to Define a Domain-Specific Language. For more information about how to use these properties, see Customizing and Extending a Domain-Specific Language.

The following table lists the properties of diagrams.

PropertyDescriptionDefault
Fill ColorThe fill color for the diagram.White
Text ColorThe color of the text that is displayed on the diagram.Black
Access ModifierThe access modifier of the class (public or internal).Public
Custom AttributesUsed to add attributes to the generated code class.<none>
Generates Double DerivedIf True, both a base class and a partial class (to support customization through overrides) will be generated. For more information, see Overriding and Extending the Generated Classes.False
Has Custom ConstructorIf True, a custom constructor will be provided in the source code. For more information, see Overriding and Extending the Generated Classes..False
Inheritance ModifierDescribes the kind of inheritance of the source code class that is generated from the diagram (none, abstract or sealed).None
Base DiagramThe base class of this diagram.(none)
NameThe name of this diagram.Current name
NamespaceThe namespace that is affiliated with this diagram.Current namespace
Class RepresentedThe root domain class that this diagram represents.Current root class if applicable
NotesInformal notes that are associated with this element.<none>
Exposes Fill Color As PropertyIf True, the user can set the fill color of the diagram of the generated designer. To set this, right click the diagram shape and click Add Explosed.False
Exposes Text Color As PropertyIf True, the user can set the text color of the diagram in the generated designer. To set this, right click the diagram shape and click Add Explosed.False
DescriptionThe description that is used to document the generated designer.<none>
Display NameThe name that will be displayed in the generated designer for this diagram.<none>
Help KeywordThe keyword that is used to index F1 help for this diagram.<none>

Domain-Specific Language Tools Glossary

Show: