Properties of Image Shapes


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

You can use image shapes to specify how domain classes appear in a generated designer. Define an image shape by setting the Image property of the class to a predefined image file. The following formats are supported:

  • .gif

  • .jpg

  • .jpeg

  • .bmp

  • .wmf

  • .emf

  • .png

By default, designer resource files, such as image files, are located in the Resourcesfolder in the Dsl project.

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.

Image shapes have the properties that are listed in the following table.

Fill ColorThe fill color of this shape.White
Fill Gradient ModeThe fill gradient mode of this shape.Horizontal
Has Default Connection PointsIf True, the shape will use top, bottom, left, and right connection points in the generated designer.False
Outline ColorThe outline color of this shape.Black
Outline Dash StyleThe outline dash style of this shape (Solid, Dash, Dot, DashDot, DashDotDot, or Custom).Solid
Outline ThicknessThe outline thickness of this shape.0.03125
Text ColorThe color that is used for text decorators that are associated with this shape.Black
Access ModifierThe access modifier of the geometry shape (public or internal).Public
Custom AttributesUsed to add attributes to the source code class that is generated from this shape.<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 image shape (none, abstract or sealed).none
Base Image ShapeThe base class of this shape.(none)
NameThe name of this shape.Current name
NamespaceThe namespace that is affiliated with this shape.Current namespace
Tooltip TypeThe place where the tooltip is defined (fixed, variable, or none). If fixed, then the value of the Fixed Tooltip Text property is used as the tooltip; if variable, then the tooltip is defined in custom code.none
NotesInformal notes that are associated with this shape.<none>
Initial HeightThe initial height of this shape, in inches.1
Initial WidthThe initial width of this shape, in inches.1.5
Exposed Fill Color As Property

Exposed Fill Gradient Mode

Exposed Outline Color As Property

Exposed Outline Dash Style As Property

Exposed Outline Thickness As Property

Exposes Text Color
If True, the user can set the stated property of a shape. To set this, right-click the shape definition and click Add Exposed.False
DescriptionUsed to document the generated designer.<none>
Display NameThe name that will be displayed in the generated designer for this shape.<none>
Fixed Tooltip TextThe text that is used for a fixed tooltip.<none>
Help KeywordThe keyword that is used to index F1 help for this element.<none>
ImageThe path to the image file that is used for this shape.<none>

Domain-Specific Language Tools Glossary