Skip to content

Button.BorderThickness

property · Button · cAlgo.API

DesktopCLICloud

Gets or sets the border thickness.

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

Returns Thickness

Examples

var button = new Button { Text = "Close all", BorderColor = Color.Orange, BorderThickness = new Thickness(2) };
Chart.AddControl(button);
Print("Border thickness: {0}", button.BorderThickness.Left);
button = Button()
button.Text = "Close all"
button.BorderColor = Color.Orange
button.BorderThickness = Thickness(2)
api.Chart.AddControl(button)
api.Print(f"Border thickness: {button.BorderThickness.Left}")