Rectangle.RadiusX
property · Rectangle · cAlgo.API
DesktopCLICloud
Gets or sets the x-axis radius of the ellipse that is used to round the corners of the rectangle.
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 RadiusX {get; set;}
rectangle.RadiusX: float
Returns double
Examples
var rectangle = new Rectangle { Width = 150, Height = 60, FillColor = Color.Teal, RadiusX = 10, RadiusY = 10 };
Chart.AddControl(rectangle);
Print("Corner x radius: {0}", rectangle.RadiusX);
rectangle = Rectangle()
rectangle.Width = 150
rectangle.Height = 60
rectangle.FillColor = Color.Teal
rectangle.RadiusX = 10
rectangle.RadiusY = 10
api.Chart.AddControl(rectangle)
api.Print(f"Corner x radius: {rectangle.RadiusX}")