Skip to content

GridColumn

interface cAlgo.API

DesktopCLICloud

Represents the column of the grid.

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

public interface GridColumn

Namespace: cAlgo.API · Group: Grid

Examples

var grid = new Grid(1, 2) { ShowGridLines = true };
GridColumn labelColumn = grid.Columns[0];
labelColumn.SetWidthInPixels(80);
grid.Columns[1].SetWidthInStars(1);
grid.AddChild(new TextBlock { Text = "Symbol" }, 0, 0);
grid.AddChild(new TextBlock { Text = SymbolName }, 0, 1);
Chart.AddControl(grid);
grid = Grid(1, 2)
grid.ShowGridLines = True
labelColumn = grid.Columns[0]
labelColumn.SetWidthInPixels(80)
grid.Columns[1].SetWidthInStars(1)
label = TextBlock()
label.Text = "Symbol"
grid.AddChild(label, 0, 0)
api.Chart.AddControl(grid)

Methods

Name Description
SetWidthInPixelsDesktopCLICloudvoid Sets the grid column width in pixels.
SetWidthInStarsDesktopCLICloudvoid Sets the grid column width in stars.
SetWidthToAutoDesktopCLICloudvoid Sets the grid column width to automatic.

Properties

Name Description
IndexDesktopCLICloudint Gets the grid column index.
MaxWidthDesktopCLIClouddouble Defines the grid column maximum width.
MinWidthDesktopCLIClouddouble Defines the grid column minimum width.
WidthDesktopCLICloudGridLength Gets the grid column width.

See also