Skip to content

GridChildPositionInfo.RowSpan

property · GridChildPositionInfo · cAlgo.API Since 5.4

DesktopCLICloud

Gets row span of child.

Definition

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

Returns int

Examples

var grid = new Grid(3, 2);
var sideBar = new Border { BackgroundColor = Color.DarkSlateGray };
grid.AddChild(sideBar, 0, 0, 3, 1);
var position = grid.GetChildPosition(sideBar);
if (position.HasValue)
    Print("Row span: {0}", position.Value.RowSpan);
grid = Grid(3, 2)
sideBar = Border()
sideBar.BackgroundColor = Color.DarkSlateGray
grid.AddChild(sideBar, 0, 0, 3, 1)
position = grid.GetChildPosition(sideBar)
if position is not None:
    api.Print(f"Row span: {position.RowSpan}")