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

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

# OwnerType (enum)

The types of owners for windows

Environments: Desktop supported · CLI supported · Cloud supported.

## Definition

```csharp
public enum OwnerType
```

## Examples

C#:

```csharp
var window = new Window { Title = "Application owned", Width = 300, Height = 200, OwnerType = OwnerType.Application };
window.Show();
Print("Window owner: {0}", window.OwnerType);
```

Python:

```python
window = Window()
window.Title = "Application owned"
window.Width = 300
window.Height = 200
window.OwnerType = OwnerType.Application
window.Show()
api.Print(f"Window owner: {window.OwnerType}")
```

## Values

- `OwnerType.None` — The default owner type, which means the window has no owner
- `OwnerType.Chart` — The chart owns the window
- `OwnerType.Application` — The application main window owns the window

