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

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

# AspBlock.Height

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

## Height

Get / set height of current block (default is 200).

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

Python:

```python
aspBlock.Height: float
```

### Returns

`double` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("My Block");
block.Height = 300;
Print("Block height: {0}", block.Height);
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("My Block")
block.Height = 300
api.Print(f"Block height: {block.Height}")
```

