---
id: "P:cAlgo.API.Window.Padding"
kind: "property"
type: "T:cAlgo.API.Window"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/Padding/"
---

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

# Window.Padding

Member of [Window](https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/index.md).

## Padding

Get / Set the window padding

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

- CLI: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
- Cloud: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

C#:

```csharp
public Thickness Padding {get; set;}
```

Python:

```python
window.Padding: Thickness
```

### Returns

`Thickness` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Padded", Width = 300, Height = 200, Padding = new Thickness(15) };
window.Child = new TextBlock { Text = "Content with 15 px padding" };
window.Show();
```

Python:

```python
window = Window()
window.Title = "Padded"
window.Width = 300
window.Height = 200
window.Padding = Thickness(15)
textBlock = TextBlock()
textBlock.Text = "Content with 15 px padding"
window.Child = textBlock
window.Show()
```

