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

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

# Window.OwnerType

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

## OwnerType

Get / Set the window owner

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

Python:

```python
window.OwnerType: OwnerType
```

### Returns

`OwnerType` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Independent window", Width = 300, Height = 200, OwnerType = OwnerType.None };
window.Show();
Print("Owner type: {0}", window.OwnerType);
```

Python:

```python
window = Window()
window.Title = "Independent window"
window.Width = 300
window.Height = 200
window.OwnerType = getattr(OwnerType, "None")
window.Show()
api.Print(f"Owner type: {window.OwnerType}")
```

