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.

PenLineCap Enumeration

Describes the shape at the end of a line or segment.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

'Declaration
Public Enumeration PenLineCap
<object property="enumerationMemberName" .../>

Member nameDescription
FlatA cap that does not extend past the last point of the line. Comparable to no line cap.
RoundA semicircle that has a diameter equal to the line thickness.
SquareA rectangle that has a height equal to the line thickness and a length equal to half the line thickness.
TriangleAn isosceles right triangle whose base length is equal to the thickness of the line.

The following illustration shows the available cap styles for lines or segments. The red portion of the line shows the extra area added by the line cap setting.

Line caps

PenLineCap settings

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft