Properties of Compartment Shapes

Compartment shapes are one of the shapes you can use to display a domain class in a domain-specific language. You can expand and collapse the compartments.

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.

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




Default Expand Collapse State

If Expanded, the compartments are shown on creation. If Collapsed, they are not.


Fill Color

The fill color of this shape.


Fill Gradient Mode

The fill gradient mode of this shape.



The geometry of this shape (Rectangle or Rounded Rectangle).


Has Default Connection Points

If True, the shape will use top, bottom, left, and right connection points in the generated designer.


Is Single Compartment Header Visible

If False, and the shape has a single compartment, the header of the compartment is not visible.


Outline Color

The outline color of this shape.


Outline Dash Style

The outline dash style of this shape (Solid, Dash, Dot, DashDot, DashDotDot, Custom).


Outline Thickness

The outline thickness of this shape.


Text Color

The color used for text decorators that are associated with this shape.


Access Modifier

The level of access of the compartment shape (public or internal).


Custom Attributes

Used to add attributes to the source code class that is generated from this compartment shape


Generates Double Derived

If 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.


Has Custom Constructor

If True, a custom constructor will be provided in the source code. For more information, see Overriding and Extending the Generated Classes.


Inheritance Modifier

Describes the kind of inheritance of the source code class that is generated from the compartment shape (none, abstract or sealed).


Base Compartment Shape

The base class of this shape.



The name of this shape.

Current name


The namespace that is affiliated with this shape.

Current namespace

Tooltip Type

How 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.



Informal notes that are associated with this shape.


Initial Height

The initial height of this shape, in inches. For compartment shapes, this is the height of the header section only and it cannot be resized.


Initial Width

The initial width of this shape, in inches.


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.



Used to document the generated designer.


Display Name

The name that will be displayed in the generated designer for this shape.


Fixed Tooltip Text

The text that is used for a fixed tooltip.


Help Keyword

The keyword that is used to index F1 help for this shape.


Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft