# Editor.PanelWindow.CanClose

```csharp
bool CanClose { get; set; }
```

Whether the user can close the window: the caption button greys out and Alt+F4 does
nothing. Code can still close it. Windows drawing their own chrome check this for their
close button too.

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
