Help Center

DashStylefunction

Specifies the line style of a line drawn with a Microsoft Windows GDI+ pen. The line can be drawn by using one of several predefined styles or a custom style.

Graphicsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Parameters

NameDescription
DashStyleSolid0
DashStyleDash1
DashStyleDot2
DashStyleDashDot3
DashStyleDashDotDot4
DashStyleCustom5

Description

The DashStyle enumeration specifies the line style of a line drawn with a Windows GDI+ pen. The line can be drawn by using one of several predefined styles or a custom style.

Remarks

A custom dashed line is created by calling the GdipSetPenDashArray function, which takes an array of values for the dash lengths and the space lengths.

Reference