We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

Controlling Color, Line Style, and other Shape Properties

Updated: March 2011

To allow the user to control the color, line width, and other properties of a shape, connector, or diagram, you can expose these features as domain properties. The user can then update these properties and you can set them in program code.

To expose a style property

  • On the DSL Definition diagram, right-click a shape, connector or diagram class.

    Point to Add Exposed, and then click the required style feature.

    A new domain property is added to the class, through which the style feature can be controlled.

Date

History

Reason

March 2011

Separated from parent topic.

Added samples.

Information enhancement.

Show: