Line Properties

You can add a Line to a page, for example to separate text or areas of a form. After you add a line, you can modify its properties to change its appearance.

 

Property

Function

Id

Read-only. By default, automatically generated. Id="Line1" for the first inserted Line, Id="Line2" for the second, and so on.

Name

Read-only. The value of this property is set to Static control.

ControlType

Read-only. Specifies Line as the type of object added to the form.

Direction

Specifies if the line drawn is in the vertical or horizontal direction.

ForegroundColor

Specifies a foreground color for the object. Select a color from one of the tabs in the drop-down list. Note that you can specify a custom color. If you change this value, you can restore to the default value specified for the parent object by right-clicking the property and clicking Reset on the context menu.

Length

Specifies the length of the line in pixels.

LineStyle

Specifies the style of the line and can be selected from the list.

Location

Specifies the point in pixels that represents the upper-left corner of the object relative to the upper-left corner of its container as an X and Y location.

TabIndex

Specifies the index that defines the tab order for the object.

ToolTip

Specifies an optional tooltip to appear when the user at runtime hovers the mouse over a control in Winforms. To view the tooltip in the Presentation Client, the user has to hover over the control and press the F1 key. This tooltip is visible only at runtime.