---
id: "P:cAlgo.API.AspTab.Index"
kind: "property"
type: "T:cAlgo.API.AspTab"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspTab/Index/"
---

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

# AspTab.Index

Member of [AspTab](https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspTab/index.md).

## Index

Get / set index of current tab (Must be greater than zero).

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

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
int Index {get; set;}
```

Python:

```python
aspTab.Index: int
```

### Returns

`int` — 

### Examples

C#:

```csharp
var tab = Asp.AddTab("My Tab");
tab.Index = 1;
Print("Tab index: {0}", tab.Index);
```

Python:

```python
tab = api.Asp.AddTab("My Tab")
tab.Index = 1
api.Print(f"Tab index: {tab.Index}")
```

