SystemParameters.PrimaryScreenWidth 属性

定义

获取一个值,该值指示主显示监视器的屏幕宽度(以 DPI 调整的像素)。

public:
 static property double PrimaryScreenWidth { double get(); };
public static double PrimaryScreenWidth { [System.Security.SecurityCritical] get; }
public static double PrimaryScreenWidth { get; }
[<get: System.Security.SecurityCritical>]
static member PrimaryScreenWidth : double
static member PrimaryScreenWidth : double
Public Shared ReadOnly Property PrimaryScreenWidth As Double

属性值

屏幕的宽度。

属性

注解

映射到SM_CXSCREEN。 请参阅 GetSystemMetrics

XAML 属性使用方法

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

适用于