Skip to content

Shape.StrokeColor

property · Shape · cAlgo.API

DesktopCLICloud

Gets or sets the stroke color.

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 Color StrokeColor {get; set;}
shape.StrokeColor: Color

Returns Color

Examples

var ellipse = new Ellipse { Width = 60, Height = 60, StrokeColor = Color.Red, StrokeThickness = 3 };
Chart.AddControl(ellipse);
Print("Stroke color: {0}", ellipse.StrokeColor);
ellipse = Ellipse()
ellipse.Width = 60
ellipse.Height = 60
ellipse.StrokeColor = Color.Red
ellipse.StrokeThickness = 3
api.Chart.AddControl(ellipse)
api.Print(f"Stroke color: {ellipse.StrokeColor}")