ToggleButton.CornerRadius
property · ToggleButton · 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;}
toggleButton.CornerRadius: CornerRadius
Returns CornerRadius
Examples
var toggleButton = new ToggleButton { Text = "Hedge", CornerRadius = new CornerRadius(10) };
Chart.AddControl(toggleButton);
toggleButton = ToggleButton()
toggleButton.Text = "Hedge"
toggleButton.CornerRadius = CornerRadius(10)
api.Chart.AddControl(toggleButton)