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

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

# TabItem.Header

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

## Header

Gets or sets the content.

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 ControlBase Header {get; set;}
```

Python:

```python
tabItem.Header: ControlBase
```

### Returns

`ControlBase` — 

Available since cAlgo.API 5.2.

### Examples

C#:

```csharp
var header = new StackPanel { Orientation = Orientation.Horizontal };
header.AddChild(new Ellipse { Width = 8, Height = 8, FillColor = Color.LimeGreen, Margin = 3 });
header.AddChild(new TextBlock { Text = "Live" });
var tabItem = new TabItem { Header = header };
var tabControl = new TabControl();
tabControl.AddTab(tabItem);
Chart.AddControl(tabControl);
```

Python:

```python
header = TextBlock()
header.Text = "Live"
tabItem = TabItem()
tabItem.Header = header
tabControl = TabControl()
tabControl.AddTab(tabItem)
api.Chart.AddControl(tabControl)
```

