GridColumn.Width
property · GridColumn · cAlgo.API
DesktopCLICloud
Gets the grid column width.
Environment behaviour
CLI — not supported. Never available in the CLI: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).
Cloud — not supported. Never available in the cloud: it is only returned by members that do not work there (Grid.AddColumn, Grid.Columns).
Definition
GridLength Width {get;}
gridColumn.Width: GridLength
Returns GridLength
Examples
var grid = new Grid(1, 1);
grid.Columns[0].SetWidthInPixels(150);
Print("Width: {0} {1}", grid.Columns[0].Width.Value, grid.Columns[0].Width.UnitType);
grid = Grid(1, 1)
grid.Columns[0].SetWidthInPixels(150)
api.Print(f"Width: {grid.Columns[0].Width.Value} {grid.Columns[0].Width.UnitType}")