PenlineCap Enumeration

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

XAML
<object property="EnumerationValue" .../>
Scripting
value = "EnumerationValue"

Enumeration Values

Value Description
Flat A cap that does not extend past the last point of the line. Comparable to no line cap.
Square A rectangle that has a height equal to the line thickness and a length equal to half the line thickness.
Round A semicircle that has a diameter equal to the line thickness.
Triangle An isosceles right triangle whose base length is equal to the thickness of the line.

Remarks

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.

PenLineCap settings

PenLineCap settings

Applies To

StrokeDashCap, StrokeEndLineCap, StrokeStartLineCap

See Also

Shapes and Drawing in Silverlight Overview
Shape
Ellipse
Line
Path
Polygon
Polyline
Rectangle

Community Additions

Show: