GridRow.SetHeightInPixels
method · GridRow · cAlgo.API
DesktopCLICloud
Sets the height of the grid row in pixels.
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 SetHeightInPixels(double value)
gridRow.SetHeightInPixels(value: float) -> None
Parameters
| Name | C# type | Python type | Description |
|---|---|---|---|
value | double | float | The value. |
Examples
var grid = new Grid(2, 1);
grid.Rows[0].SetHeightInPixels(30);
grid.AddChild(new TextBlock { Text = "Fixed 30 px row" }, 0, 0);
Chart.AddControl(grid);
grid = Grid(2, 1)
grid.Rows[0].SetHeightInPixels(30)
textBlock = TextBlock()
textBlock.Text = "Fixed 30 px row"
grid.AddChild(textBlock, 0, 0)
api.Chart.AddControl(grid)