Skip to content

Rectangle.RadiusY

property · Rectangle · cAlgo.API

DesktopCLICloud

Gets or sets the y-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 RadiusY {get; set;}
rectangle.RadiusY: float

Returns double

Examples

var rectangle = new Rectangle { Width = 150, Height = 60, FillColor = Color.Teal, RadiusX = 20, RadiusY = 30 };
Chart.AddControl(rectangle);
Print("Corner y radius: {0}", rectangle.RadiusY);
rectangle = Rectangle()
rectangle.Width = 150
rectangle.Height = 60
rectangle.FillColor = Color.Teal
rectangle.RadiusX = 20
rectangle.RadiusY = 30
api.Chart.AddControl(rectangle)
api.Print(f"Corner y radius: {rectangle.RadiusY}")