Skip to content

GridColumn.MaxWidth

property · GridColumn · cAlgo.API

DesktopCLICloud

Defines the grid column maximum 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

double MaxWidth {get; set;}
gridColumn.MaxWidth: float

Returns double

Examples

var grid = new Grid(1, 2);
grid.Columns[0].SetWidthToAuto();
grid.Columns[0].MaxWidth = 200;
Print("Maximum width: {0}", grid.Columns[0].MaxWidth);
grid = Grid(1, 2)
grid.Columns[0].SetWidthToAuto()
grid.Columns[0].MaxWidth = 200
api.Print(f"Maximum width: {grid.Columns[0].MaxWidth}")