SystemParameters.PrimaryScreenHeight 属性

定义

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

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

属性值

屏幕的高度。

属性

注解

映射到SM_CYSCREEN。 请参阅 GetSystemMetrics

XAML 属性使用方法

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

适用于