Properties of Decorators

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Properties of Decorators.

Decorators are icons, text, or expand/collapse chevrons that can appear on shapes or connectors on the diagram. The following tables show the properties for the three kinds of decorator. Some of the properties appear only on shape decorators or only on connector decorators.

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.

PropertyDescriptionDefault
DisplayNameThe name of the decorator that will be displayed in the generated designer.Expand Collapse Decorator
NameThe name of the decorator.ExpandCollapseDecorator
NotesInformal notes that are associated with this decorator.<none>
HorizontalOffsetThe horizontal offset, relative to the default position of the decorator, in inches. (On shapes only.)0
VerticalOffsetThe vertical offset, relative to the default position of the decorator, in inches. (On shapes only.)0
OffsetFromLineThe offset of the decorator from the line, relative to its default position, in inches. (On connectors only.)0
OffsetFromShapeThe offset of the decorator from the shape, relative to its default position, in inches. (On connectors only.)0
PositionThe default position of the decorator.SourceTop
PropertyDescriptionDefault
DefaultIconThe path of the icon or image file to be displayed.<none>
DisplayNameThe name of the decorator to be displayed in the generated designer.Icon Decorator
NameThe name of the decorator.IconDecorator
NotesInformal notes that are associated with the decorator.<none>
HorizontalOffsetThe horizontal offset, relative to the default position of the decorator, in inches. (On shapes only.)0
VerticalOffsetThe vertical offset, relative to the default position of the decorator, in inches. (On shapes only.)0
OffsetFromLineThe offset of the decorator from the line, relative to its default position, in inches. (On connectors only.)0
OffsetFromShapeThe offset of the decorator from the shape, relative to its default position, in inches. (On connectors only.)0
PositionThe default position of the decorator.SourceTop
PropertyDescriptionDefault
DefaultTextThe default text to be displayed.Label
DisplayNameThe name of the decorator to be displayed in the generated designer.Label
FontSizeThe font size for the text that is displayed in the decorator.8
FontStyleThe font style for the text that is displayed in the decorator.Regular
NameThe name of the decorator.Label
NotesInformal notes that are associated with the decorator.<none>
HorizontalOffsetThe horizontal offset, relative to the default position of the decorator, in inches. (On shapes only.)0
VerticalOffsetThe vertical offset, relative to the default position of the decorator, in inches. (On shapes only.)0
OffsetFromLineThe offset of the decorator from the line, relative to its default position, in inches. (On connectors only.)0
OffsetFromShapeThe offset of the decorator from the shape, relative to its default position, in inches. (On connectors only.)0
PositionThe default position of the decorator.TargetBottom

Domain-Specific Language Tools Glossary

Show: