Control.Padding
property · Control · cAlgo.API
DesktopCLICloud
Gets or sets the chart control padding. 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 Padding {get; set;}
control.Padding: Thickness
Returns Thickness
Examples
var button = new Button { Text = "Close all positions", Padding = new Thickness(20, 8, 20, 8) };
Chart.AddControl(button);
button = Button()
button.Text = "Close all positions"
button.Padding = Thickness(20, 8, 20, 8)
api.Chart.AddControl(button)