Skip to content

WrapPanel.ItemWidth

property · WrapPanel · cAlgo.API

DesktopCLICloud

Gets or sets the width of the item.

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 double ItemWidth {get; set;}
wrapPanel.ItemWidth: float

Returns double

Examples

var wrapPanel = new WrapPanel { Width = 240, ItemWidth = 80 };
foreach (var symbolName in new[] { "EURUSD", "GBPUSD", "USDJPY", "XAUUSD" })
    wrapPanel.AddChild(new Button { Text = symbolName });
Chart.AddControl(wrapPanel);
wrapPanel = WrapPanel()
wrapPanel.Width = 240
wrapPanel.ItemWidth = 80
for symbolName in ["EURUSD", "GBPUSD", "USDJPY", "XAUUSD"]:
    button = Button()
    button.Text = symbolName
    wrapPanel.AddChild(button)
api.Chart.AddControl(wrapPanel)