Click or drag to resize
CanvasCapStyle Enumeration
Describes the shape at the end of a line or segment.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public enum CanvasCapStyle
Members
  Member nameValueDescription
Flat0A cap that does not extend past the last point of the line. If CanvasStrokeStyle.DashCap is set to Flat, dots will have zero size so only dashes are visible.
Square1Half of a square that has a length equal to the line thickness.
Round2A semicircle that has a diameter equal to the line thickness.
Triangle3An isosceles right triangle whose hypotenuse is equal in length to the thickness of the line.
Remarks

This illustration shows the available cap styles. The red portion of the line shows the extra area added by the cap setting.

CanvasCapStyle diagram
See Also