DpiHelper.GetDeviceWidth(Window) 方法

定义

获取窗口的宽度(以设备单位为单位)

public:
 double GetDeviceWidth(System::Windows::Window ^ window);
public double GetDeviceWidth (System.Windows.Window window);
member this.GetDeviceWidth : System.Windows.Window -> double
Public Function GetDeviceWidth (window As Window) As Double

参数

window
Window

要检查的窗口

返回

Double

设备宽度

适用于