---
id: "P:cAlgo.API.GridLength.Value"
kind: "property"
type: "T:cAlgo.API.GridLength"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridLength/Value/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# GridLength.Value

Member of [GridLength](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridLength/index.md).

## Value

Gets or sets the value.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public double Value {get;}
```

Python:

```python
gridLength.Value: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var grid = new Grid(1, 2);
grid.Columns[0].SetWidthInPixels(120);
var width = grid.Columns[0].Width;
Print("Column width: {0} {1}", width.Value, width.UnitType);
```

Python:

```python
grid = Grid(1, 2)
grid.Columns[0].SetWidthInPixels(120)
width = grid.Columns[0].Width
api.Print(f"Column width: {width.Value} {width.UnitType}")
```

