Skip to content

Button.CornerRadius

property · Button · cAlgo.API

DesktopCLICloud

Gets or sets the border corner radius. Property value can be set using CornerRadius, number, or a string: new CornerRadius(5), new CornerRadius(1, 2, 3, 4).

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 CornerRadius CornerRadius {get; set;}
button.CornerRadius: CornerRadius

Returns CornerRadius

Examples

var button = new Button { Text = "Buy", CornerRadius = new CornerRadius(12) };
Chart.AddControl(button);
button = Button()
button.Text = "Buy"
button.CornerRadius = CornerRadius(12)
api.Chart.AddControl(button)