---
id: "T:cAlgo.API.ResizeMode"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/ResizeMode/"
---

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

# ResizeMode (enum)

Types of resize modes for windows

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum ResizeMode
```

## Examples

C#:

```csharp
var window = new Window { Title = "Fixed size", Width = 300, Height = 200, ResizeMode = ResizeMode.NoResize };
window.Show();
Print("Resize mode: {0}", window.ResizeMode);
```

Python:

```python
window = Window()
window.Title = "Fixed size"
window.Width = 300
window.Height = 200
window.ResizeMode = ResizeMode.NoResize
window.Show()
api.Print(f"Resize mode: {window.ResizeMode}")
```

## Values

- `ResizeMode.NoResize` — For windows that cannot be resized
- `ResizeMode.CanMinimize` — For windows that can only be minimized
- `ResizeMode.CanResize` — For windows that can be resized from all directions
- `ResizeMode.CanResizeWithGrip` — For windows that can only be resized by the bottom edge resize grip

