Skip to content

GridChildPositionInfo.Row

property · GridChildPositionInfo · cAlgo.API Since 5.4

DesktopCLICloud

Gets row number of child.

Definition

public int Row {get;}
gridChildPositionInfo.Row: int

Returns int

Examples

var grid = new Grid(3, 1);
var label = new TextBlock { Text = "Equity" };
grid.AddChild(label, 2, 0);
var position = grid.GetChildPosition(label);
if (position.HasValue)
    Print("Row: {0}", position.Value.Row);
grid = Grid(3, 1)
label = TextBlock()
label.Text = "Equity"
grid.AddChild(label, 2, 0)
position = grid.GetChildPosition(label)
if position is not None:
    api.Print(f"Row: {position.Row}")