You can use image shapes to specify how domain classes appear in a generated designer. You define image shapes by pointing them at a predefined image file. The following types of image files are supported:
.gif
.jpg
.jpeg
.bmp
.wmf
.emf
.png
You can modify the properties of an image shape by clicking it in the Diagram Elements swimlane and modifying its properties in the Properties window. For more information, see How to: Add an Image Shape to a Domain-Specific Language Definition and How to: Add an Image Shape (DSL Explorer).
The Use Cases Diagram sample demonstrates how to use an image shape. For more information, see Use Cases Diagram Sample.
Image shapes have the properties that are listed in the following table:
Property |
Description |
Default |
|---|---|---|
Fill Color |
Fill color of this shape. |
White |
Fill Gradient Mode |
Fill gradient mode of this shape. |
Horizontal |
Has Default Connection Points |
If True, the shape will use top, bottom, left and right connection points in the generated designer. |
False |
Outline Color |
Outline color of this shape. |
Black |
Outline Dash Style |
The outline dash style of this geometry shape. |
Solid |
Outline Thickness |
The outline thickness of this geometry shape |
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 Image Shape |
Base image shape of this image shape. |
(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. |
|
Initial Height |
Initial height of this shape, in inches. |
1 |
Initial Width |
Initial width of this shape, in inches. |
1.5 |
Exposed Fill Color As Property |
If True, a domain property has been added to the shape to allow the fill color to be exposed in the properties window of the generated designer. |
False |
Exposed Fill Gradient Mode |
If True, a domain property has been added to the shape to allow the fill gradient mode to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Color As Property |
If True, a domain property has been added to the shape to allow the outline color to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Dash Style As Property |
If True, a domain property has been added to the shape to allow the outline dash style to be exposed in the properties window of the generated designer. |
False |
Exposed Outline Thickness As Property |
If True, then a domain property has been added to the shape to allow the outline thickness to be exposed in the properties window of the generated designer. |
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. |
|
Image |
Path to the image file to be used for this image shape. |
See Also
Concepts
Element Reference for Domain-Specific Languages