GridRow.SetHeightToAuto
method · GridRow · cAlgo.API
DesktopCLICloud
Sets the height of the grid row to automatic.
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
void SetHeightToAuto()
gridRow.SetHeightToAuto() -> None
Examples
var grid = new Grid(2, 1);
grid.Rows[0].SetHeightToAuto();
grid.AddChild(new TextBlock { Text = "Sized to content" }, 0, 0);
Chart.AddControl(grid);
grid = Grid(2, 1)
grid.Rows[0].SetHeightToAuto()
textBlock = TextBlock()
textBlock.Text = "Sized to content"
grid.AddChild(textBlock, 0, 0)
api.Chart.AddControl(grid)