Shape.StrokeThickness
property · Shape · cAlgo.API
DesktopCLICloud
Gets or sets the stroke thickness.
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 StrokeThickness {get; set;}
shape.StrokeThickness: float
Returns double
Examples
var line = new Line { X1 = 0, Y1 = 0, X2 = 200, Y2 = 0, StrokeColor = Color.Yellow, StrokeThickness = 4 };
Chart.AddControl(line);
Print("Stroke thickness: {0}", line.StrokeThickness);
line = Line()
line.X2 = 200
line.StrokeColor = Color.Yellow
line.StrokeThickness = 4
api.Chart.AddControl(line)
api.Print(f"Stroke thickness: {line.StrokeThickness}")