Skip to main content

DashStyle

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

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

public enum DashStyle : Enum

Fields

NameDescription
CustomSpecifies a user-defined custom dash style.
DashSpecifies a line consisting of dashes.
DashDotSpecifies a line consisting of a repeating pattern of dash-dot.
DashDotDotSpecifies a line consisting of a repeating pattern of dash-dot-dot.
DotSpecifies a line consisting of dots.
SolidSpecifies a solid line.

Used By

NameDescription
Pen.DashStyleGets or sets the style used for dashed lines drawn with this Pen.