Skip to content

GridRow.Index

property · GridRow · cAlgo.API

DesktopCLICloud

Gets the grid row index.

Environment behaviour

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

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

Definition

int Index {get;}
gridRow.Index: int

Returns int

Examples

var grid = new Grid(0, 1);
var row = grid.AddRow();
grid.AddChild(new TextBlock { Text = "New row" }, row.Index, 0);
Print("Row index: {0}", row.Index);
grid = Grid(0, 1)
row = grid.AddRow()
textBlock = TextBlock()
textBlock.Text = "New row"
grid.AddChild(textBlock, row.Index, 0)
api.Print(f"Row index: {row.Index}")