DpiHelper.GetDeviceRect(Window) 方法

定义

获取以设备单位表示的窗口矩形

public:
 System::Windows::Rect GetDeviceRect(System::Windows::Window ^ window);
public System.Windows.Rect GetDeviceRect (System.Windows.Window window);
member this.GetDeviceRect : System.Windows.Window -> System.Windows.Rect
Public Function GetDeviceRect (window As Window) As Rect

参数

window
Window

要检查的窗口

返回

Rect

设备单位矩形

适用于