StackPanel.Orientation
property · StackPanel · cAlgo.API
DesktopCLICloud
Gets or sets the StackPanel orientation.
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 Orientation Orientation {get; set;}
stackPanel.Orientation: Orientation
Returns Orientation
Examples
var panel = new StackPanel { Orientation = Orientation.Horizontal, VerticalAlignment = VerticalAlignment.Bottom };
panel.AddChild(new Button { Text = "Buy", Margin = 2 });
panel.AddChild(new Button { Text = "Sell", Margin = 2 });
Chart.AddControl(panel);
panel = StackPanel()
panel.Orientation = Orientation.Horizontal
panel.VerticalAlignment = VerticalAlignment.Bottom
for text in ["Buy", "Sell"]:
button = Button()
button.Text = text
panel.AddChild(button)
api.Chart.AddControl(panel)