Skip to content

GridColumn.SetWidthInPixels

method · GridColumn · cAlgo.API

DesktopCLICloud

Sets the grid column width in pixels.

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

void SetWidthInPixels(double value)
gridColumn.SetWidthInPixels(value: float) -> None

Parameters

Name C# type Python type Description
value double float The value.

Examples

var grid = new Grid(1, 2);
grid.Columns[0].SetWidthInPixels(100);
grid.AddChild(new TextBlock { Text = "Fixed 100 px" }, 0, 0);
Chart.AddControl(grid);
grid = Grid(1, 2)
grid.Columns[0].SetWidthInPixels(100)
textBlock = TextBlock()
textBlock.Text = "Fixed 100 px"
grid.AddChild(textBlock, 0, 0)
api.Chart.AddControl(grid)