Windows apps
Collapse the table of content
Expand the table of content
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:  System.Windows (in System.Windows.dll)

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

Member nameDescription
Supported by Silverlight for Windows PhoneFlatA cap that does not extend past the last point of the line. Comparable to no line cap.
Supported by Silverlight for Windows PhoneSquareA rectangle that has a height equal to the line thickness and a length equal to half the line thickness.
Supported by Silverlight for Windows PhoneRoundA semicircle that has a diameter equal to the line thickness.
Supported by Silverlight for Windows PhoneTriangleAn 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


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2017 Microsoft