Skip to content

WrapPanel.Orientation

property · WrapPanel · cAlgo.API

DesktopCLICloud

Gets or sets the orientation of the child element.

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;}
wrapPanel.Orientation: Orientation

Returns Orientation

Examples

var wrapPanel = new WrapPanel { Orientation = Orientation.Vertical, Height = 100 };
for (var i = 1; i <= 8; i++)
    wrapPanel.AddChild(new TextBlock { Text = "Level " + i, Margin = 2 });
Chart.AddControl(wrapPanel);
wrapPanel = WrapPanel()
wrapPanel.Orientation = Orientation.Vertical
wrapPanel.Height = 100
for i in range(1, 9):
    textBlock = TextBlock()
    textBlock.Text = f"Level {i}"
    wrapPanel.AddChild(textBlock)
api.Chart.AddControl(wrapPanel)