System.Drawing.Drawing2D.DashStyle Enumeration

Specifies the style of dashed lines drawn with a System.Drawing.Pen object.

Syntax

public enum DashStyle

Remarks

To define a custom System.Drawing.Pen.DashStyle, set the System.Drawing.Pen.DashPattern property of the System.Drawing.Pen.

Members

Member NameDescription
Custom

Specifies a user-defined custom dash style.

Dash

Specifies a line consisting of dashes.

DashDot

Specifies a line consisting of a repeating pattern of dash-dot.

DashDotDot

Specifies a line consisting of a repeating pattern of dash-dot-dot.

Dot

Specifies a line consisting of dots.

Solid

Specifies a solid line.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0