Shape.StrokeDashArray
property · Shape · cAlgo.API
DesktopCLICloud
Gets or sets a collection of Double values that indicate the pattern of dashes and gaps that is used to outline shapes.
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 double[] StrokeDashArray {get; set;}
shape.StrokeDashArray: list[float]
Returns double[]
Examples
var line = new Line { X1 = 0, Y1 = 20, X2 = 300, Y2 = 20, StrokeColor = Color.Gray, StrokeThickness = 2 };
line.StrokeDashArray = new double[] { 4, 2 };
Chart.AddControl(line);
line = Line()
line.Y1 = 20
line.X2 = 300
line.Y2 = 20
line.StrokeColor = Color.Gray
line.StrokeThickness = 2
line.StrokeDashArray = [4.0, 2.0]
api.Chart.AddControl(line)