Skip to content

Shape.StrokeDashCap

property · Shape · cAlgo.API

DesktopCLICloud

Gets or sets a PenLineCap enumeration value that specifies how the ends of a dash are drawn.

Environment behaviour

CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.

Definition

public PenLineCap StrokeDashCap {get; set;}
shape.StrokeDashCap: PenLineCap

Returns PenLineCap

Examples

var line = new Line { X1 = 0, Y1 = 20, X2 = 300, Y2 = 20, StrokeColor = Color.Gray, StrokeThickness = 4 };
line.StrokeDashArray = new double[] { 2, 2 };
line.StrokeDashCap = PenLineCap.Round;
Chart.AddControl(line);
line = Line()
line.Y1 = 20
line.X2 = 300
line.Y2 = 20
line.StrokeColor = Color.Gray
line.StrokeThickness = 4
line.StrokeDashArray = [2.0, 2.0]
line.StrokeDashCap = PenLineCap.Round
api.Chart.AddControl(line)