ToggleButton.BorderThickness
property · ToggleButton · cAlgo.API
DesktopCLICloud
Gets or sets the border thickness. Property value can be set using Thickness, number, or a string new Thickness(5), new Thickness(1, 2, 3, 4), 5, "5", "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 Thickness BorderThickness {get; set;}
toggleButton.BorderThickness: Thickness
Returns Thickness
Examples
var toggleButton = new ToggleButton { Text = "Trailing", BorderColor = Color.White, BorderThickness = new Thickness(2) };
Chart.AddControl(toggleButton);
Print("Border thickness: {0}", toggleButton.BorderThickness.Top);
toggleButton = ToggleButton()
toggleButton.Text = "Trailing"
toggleButton.BorderColor = Color.White
toggleButton.BorderThickness = Thickness(2)
api.Chart.AddControl(toggleButton)
api.Print(f"Border thickness: {toggleButton.BorderThickness.Top}")