PenLineCap Enumeration
Collapse the table of content
Expand the table of content

PenLineCap Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public enum PenLineCap
<object property="enumMemberName"/>

Member nameDescription
FlatA cap that does not extend past the last point of the line. Comparable to no line cap.
SquareA rectangle that has a height equal to the line thickness and a length equal to half the line thickness.
RoundA semicircle that has a diameter equal to 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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft