Skip to content

GridColumn.Index

property · GridColumn · cAlgo.API

DesktopCLICloud

Gets the grid column index.

Environment behaviour

CLI — not supported. Never available in the CLI: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).

Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).

Definition

int Index {get;}
gridColumn.Index: int

Returns int

Examples

var grid = new Grid(1, 0);
var column = grid.AddColumn();
grid.AddChild(new TextBlock { Text = "EURUSD" }, 0, column.Index);
Print("Column index: {0}", column.Index);
grid = Grid(1, 0)
column = grid.AddColumn()
textBlock = TextBlock()
textBlock.Text = "EURUSD"
grid.AddChild(textBlock, 0, column.Index)
api.Print(f"Column index: {column.Index}")