Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DashStyle enumeration

Applies to: desktop apps only

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  {
  DashStyleSolid        = 0,
  DashStyleDash         = 1,
  DashStyleDot          = 2,
  DashStyleDashDot      = 3,
  DashStyleDashDotDot   = 4,
  DashStyleCustom       = 5 
} DashStyle;

Constants

DashStyleSolid

Specifies a solid line.

DashStyleDash

Specifies a dashed line.

DashStyleDot

Specifies a dotted line.

DashStyleDashDot

Specifies an alternating dash-dot line.

DashStyleDashDotDot

Specifies an alternating dash-dot-dot line.

DashStyleCustom

Specifies 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

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusenums.h (include Gdiplus.h)

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Show: