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

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

# Window.Topmost

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

## Topmost

Get / Set the window topmost flag, if True then the window will appear on top of all other windows

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

Python:

```python
window.Topmost: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
var window = new Window { Title = "Always on top", Width = 250, Height = 120, Topmost = true };
window.Child = new TextBlock { Text = SymbolName + " " + Symbol.Bid };
window.Show();
```

Python:

```python
window = Window()
window.Title = "Always on top"
window.Width = 250
window.Height = 120
window.Topmost = True
window.Show()
```

