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

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

# AspBlock.Child

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

## Child

Get / set content 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
ControlBase Child {get; set;}
```

Python:

```python
aspBlock.Child: ControlBase
```

### Returns

`ControlBase` — 

### Examples

C#:

```csharp
var block = Asp.SymbolTab.AddBlock("My Block");
block.Child = new TextBlock { Text = "Block content", Margin = 5 };
```

Python:

```python
block = api.Asp.SymbolTab.AddBlock("My Block")
textBlock = TextBlock()
textBlock.Text = "Block content"
textBlock.Margin = Thickness(5)
block.Child = textBlock
```

