Export (0) Print
Expand All

Pen.DashStyle Property

Gets or sets the style used for dashed lines drawn with this Pen object.

[Visual Basic]
Public Property DashStyle As DashStyle
[C#]
public DashStyle DashStyle {get; set;}
[C++]
public: __property DashStyle get_DashStyle();
public: __property void set_DashStyle(DashStyle);
[JScript]
public function get DashStyle() : DashStyle;
public function set DashStyle(DashStyle);

Property Value

A DashStyle enumeration that represents the style used for dashed lines drawn with this Pen object.

Remarks

A value of DashStyle.Custom for this property specifies that a custom pattern of dashes and spaces, defined by the DashPattern property, make up lines drawn with this Pen object. If the value of this property is DashStyle.Custom and the value of the DashPattern property is a null reference (Nothing in Visual Basic), the pen draws solid lines.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Pen Class | Pen Members | System.Drawing Namespace

Show:
© 2014 Microsoft