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

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

# AspBlock.IsExpanded

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

## IsExpanded

Get expanded state of current block.

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

Python:

```python
aspBlock.IsExpanded: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("My Block");
Print("Block is expanded: {0}", block.IsExpanded);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("My Block")
api.Print(f"Block is expanded: {block.IsExpanded}")
```

