# Editor.PanelWindow.AspectRatioLock

```csharp
System.Nullable<float> AspectRatioLock { get; set; }
```

Hold the window at this width to height ratio while the user resizes it - 16f / 9 keeps a
video window the shape of its video. Null lets it be any shape.

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
