Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PenLineCap Enumeration
Collapse the table of content
Expand the table of content

PenLineCap Enumeration

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

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

public enum 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
© 2015 Microsoft