Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Syntax
typedef enum DashStyle {
DashStyleSolid,
DashStyleDash,
DashStyleDot,
DashStyleDashDot,
DashStyleDashDotDot,
DashStyleCustom
} ;
Constants
DashStyleSolidSpecifies a solid line. |
DashStyleDashSpecifies a dashed line. |
DashStyleDotSpecifies a dotted line. |
DashStyleDashDotSpecifies an alternating dash-dot line. |
DashStyleDashDotDotSpecifies an alternating dash-dot-dot line. |
DashStyleCustomSpecifies a user-defined, custom dashed line. |
Remarks
A custom dashed line is created by calling the Pen::SetDashPattern method, which takes an array of values for the dash lengths and the space lengths.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows XP, Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | gdiplusenums.h (include Gdiplus.h) |