DrawStyle Property

Applies To   See Also

Specifies the line style to use when drawing with graphics methods. Available at design time and run time.

Syntax

Object.DrawStyle[ = nStyle]

Settings

nStyle

The settings for the DrawStyle property are:

Setting Description
0 (Default) Solid
1 Dash
2 Dot
3 Dash-Dot
4 Dash-Dot-Dot
5 Transparent
6 Inside Solid

Note   If DrawWidth is set to 1, DrawStyle produces the effect described in the preceding table for each setting. But if DrawWidth is set to a value greater than 1, settings 1 through 4 produce a solid line.