---
id: "P:cAlgo.API.TradeWatchTab.IsSelected"
kind: "property"
type: "T:cAlgo.API.TradeWatchTab"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/TradeWatch/TradeWatchTab/IsSelected/"
---

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

# TradeWatchTab.IsSelected

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

## IsSelected

Get / set selected state of current tab.

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
bool IsSelected {get; set;}
```

Python:

```python
tradeWatchTab.IsSelected: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var tab = TradeWatch.AddTab("My Tab");
tab.IsSelected = true;
Print("Tab is selected: {0}", tab.IsSelected);
```

Python:

```python
tab = api.TradeWatch.AddTab("My Tab")
tab.IsSelected = True
api.Print(f"Tab is selected: {tab.IsSelected}")
```

