Property Screen
Screen
Gets or sets the size of the screen. By default, this is the size of the screen as reported by the IDriver.
[Obsolete("The legacy static Application object is going away.")]
public static Rectangle Screen { get; set; }
Property Value
Remarks
If the IDriver has not been initialized, this will return a default size of 2048x2048; useful for unit tests.
In FullScreen mode, setting this property delegates to SetScreenSize(int, int) when the Driver has been initialized. If the Driver is null (before Init(string?) or after disposal), the setter raises ScreenChanged with the current getter value but does not call the Driver. To simulate a terminal resize in tests, prefer calling SetScreenSize(int, int) directly.