You can use connectors to specify how domain relationships appear in a generated designer. For example, you can specify what color and dash style that the line will display. For more information, see How to: Add a Connector to a Domain-Specific Language Definition and How to: Add a Connector (DSL Explorer).
Connectors have the properties that are listed in the following table:
Property |
Description |
Default |
|---|---|---|
Color |
The color of this connector. |
Black |
Dash Style |
The dash style for the line for this connector. |
Solid |
Source End Style |
The source end style for this connector. |
None |
Target End Style |
The target end style for this connector. |
None |
Text Color |
The color used for text decorators associated with this diagram element. |
Black |
Thickness |
The thickness of the line for this connector, measured in inches. |
0.03125 |
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 Connector |
Base connector of this connector. |
(none) |
Name |
The name of this element. |
Current name |
Namespace |
The namespace affiliated with this domain class. |
Current namespace |
Tool Tip Type |
If Fixed, then the fixed tooltip text is used as the tooltip, if variable the tooltip is defined in custom code. |
|
Notes |
Informal notes associated with this element. |
|
Routing Style |
The style used for routing the connector. A rectilinear connector makes right angled turns as necessary, a straight connector does not. |
Rectilinear |
Exposed Fill Color As property |
If True, then a domain property has been added to the connector to allow the color to be exposed in the properties window of the generated designer. |
False |
Exposed Fill Gradient Mode |
If True, then a domain property has been added to the connector to allow the dash style to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Color As Property |
If True, then a domain property has been added to the connector to allow the thickness to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Dash Style As Property |
If True, then a domain property has been added to the connector to allow the text color to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Thickness As Property |
The style used for routing the connector. A rectilinear connector makes right angled turns as necessary, a straight connector does not. |
False |
Exposes Text Color |
If True, then a domain property has been added to the connector to allow the 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. |
|
Fixed Tool Tip Text |
The text used for a fixed tooltip. |
|
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