---
id: "P:cAlgo.API.TabControl.Tabs"
kind: "property"
type: "T:cAlgo.API.TabControl"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/TabControl/Tabs/"
---

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

# TabControl.Tabs

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

## Tabs

Get tabs.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Accepted without error but never displayed, so control events such as Click are never raised.
- Cloud: Accepted without error but never displayed, so control events such as Click are never raised.

C#:

```csharp
public IReadonlyList<TabItem> Tabs {get;}
```

Python:

```python
tabControl.Tabs: IReadonlyList[TabItem]
```

### Returns

`IReadonlyList<TabItem>` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var tabControl = new TabControl();
tabControl.AddTab(new TabItem { Header = new TextBlock { Text = "Trade" } });
tabControl.AddTab(new TabItem { Header = new TextBlock { Text = "History" } });
Chart.AddControl(tabControl);
Print("Tab count: {0}", tabControl.Tabs.Count);
```

Python:

```python
tabControl = TabControl()
for title in ["Trade", "History"]:
    header = TextBlock()
    header.Text = title
    tab = TabItem()
    tab.Header = header
    tabControl.AddTab(tab)
api.Chart.AddControl(tabControl)
api.Print(f"Tab count: {tabControl.Tabs.Count}")
```

