DashCap enumeration (gdiplusenums.h)

The DashCap enumeration specifies the type of graphic shape to use on both ends of each dash in a dashed line.

Syntax

typedef enum DashCap {
  DashCapFlat = 0,
  DashCapRound = 2,
  DashCapTriangle = 3
} ;

Constants

 
DashCapFlat
Value: 0
Specifies a square cap that squares off both ends of each dash.
DashCapRound
Value: 2
Specifies a circular cap that rounds off both ends of each dash.
DashCapTriangle
Value: 3
Specifies a triangular cap that points both ends of each dash.

Remarks

If you set the alignment of a Pen object to PenAlignmentInset, you cannot use that pen to draw triangular dash caps.

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)