SystemParameters.WorkArea 属性

定义

获取主监视器上工作区域的尺寸。

public:
 static property System::Windows::Rect WorkArea { System::Windows::Rect get(); };
public static System.Windows.Rect WorkArea { get; }
static member WorkArea : System.Windows.Rect
Public Shared ReadOnly Property WorkArea As Rect

属性值

接收工作区域坐标(表示为虚拟屏幕坐标)的 RECT 结构。

注解

工作区是屏幕中未被系统任务栏或应用程序桌面工具栏遮盖的部分。

映射到SPI_GETWORKAREA。 请参阅 SystemParametersInfo

XAML 属性使用方法

<object property=“{ SystemParameters.WorkArea}”/>

适用于