You can add swimlanes to a domain-specific language definition, which will produce horizontal or vertical lines on the generated designer to designate defined areas on a diagram. You can define other shapes to be bound to swimlanes. For more information, see How to: Add a Swimlane to a Domain-Specific Language Definition and How to: Add a Swimlane (DSL Explorer).
The Task Flow Diagram sample demonstrates the use of a swimlane. For more information, see Task Flow Diagram Sample.
Swimlanes have the properties that are listed in the following table:
Property |
Description |
Default |
|---|---|---|
Body Fill Color |
Fill color for the body of the swimlane. |
White |
Header Fill Color |
Fill color for the header of the swimlane. |
DarkGray |
Separator Color |
Color of the separator line. |
LightGray |
Separator Line Style |
Style of the separator line. |
Dash |
Separator Thickness |
Thickness of the separator line. |
0.03125 |
Text Color |
The color used for text decorators associated with this diagram element. |
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 Swimlane |
Base swimlane of this swimlane. |
(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. |
|
Alignment |
Whether the swimlane is horizontally or vertically aligned. |
Vertical |
Initial Height |
Initial height of this shape, in inches. |
0 |
Initial Width |
Initial width of this swimlane, in inches. Only applicable to vertical swimlanes. |
0 |
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