---
id: "T:cAlgo.API.GridChildPositionInfo"
kind: "struct"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridChildPositionInfo/"
---

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

# GridChildPositionInfo (struct)

Represents a Grid panel child position info.

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public sealed struct GridChildPositionInfo : ValueType
```

Available since cAlgo.API 5.4.

## Examples

C#:

```csharp
var grid = new Grid(2, 2);
var header = new TextBlock { Text = "EURUSD" };
grid.AddChild(header, 0, 0, 1, 2);
Chart.AddControl(grid);
var position = grid.GetChildPosition(header);
if (position.HasValue)
    Print("Row {0}, column {1}, column span {2}", position.Value.Row, position.Value.Column, position.Value.ColumnSpan);
```

Python:

```python
grid = Grid(2, 2)
header = TextBlock()
header.Text = "EURUSD"
grid.AddChild(header, 0, 0, 1, 2)
api.Chart.AddControl(grid)
position = grid.GetChildPosition(header)
if position is not None:
    api.Print(f"Row {position.Row}, column {position.Column}, column span {position.ColumnSpan}")
```

## Properties

- `public int Column {get;}` — Gets column number of child. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridChildPositionInfo/Column/index.md)
- `public int ColumnSpan {get;}` — Gets column span of child. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridChildPositionInfo/ColumnSpan/index.md)
- `public int Row {get;}` — Gets row number of child. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridChildPositionInfo/Row/index.md)
- `public int RowSpan {get;}` — Gets row span of child. [details](https://help.ctrader.com/ctrader-algo/references/Controls/Layout/Grid/GridChildPositionInfo/RowSpan/index.md)

