Port Shape (Domain-Specific Language Designer)

You can use port shapes to represent ports in a generated designer. You can modify the properties of a port shape by clicking it in the Diagram Elements swimlane and modifying its properties in the Properties window. For more information, see How to: Add a Port Shape to a Domain-Specific Language Definition and How to: Add a Port (DSL Explorer).

The Components Diagram sample demonstrates the use of port shapes. For more information, see Components Diagram Sample.

Port shapes have the properties 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

Geometry

Outline geometry of this shape.

Rectangle

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 Port

Base port of this port.

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

See Also

Concepts

Element Reference for Domain-Specific Languages

Domain-Specific Language Designer Terminology Overview

Domain-Specific Language Tools Glossary