Pen::GetEndCap method (gdipluspen.h)

The Pen::GetEndCap method gets the end cap currently set for this Pen object.

Syntax

LineCap GetEndCap();

Return value

Type: LineCap

This method returns an element of the LineCap enumeration that indicates the end cap for this Pen object.

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdipluspen.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Drawing a Line with Line Caps

LineCap

Pen

Pen::GetCustomEndCap

Pen::GetCustomStartCap

Pen::SetEndCap

Pen::SetLineCap

Pen::SetStartCap

Pens, Lines, and Rectangles