DpiHelper.SetDeviceWidth(Window, Double) 方法

定义

使用设备单位设置窗口的宽度

public:
 void SetDeviceWidth(System::Windows::Window ^ % window, double deviceWidth);
public void SetDeviceWidth (ref System.Windows.Window window, double deviceWidth);
member this.SetDeviceWidth : Window * double -> unit
Public Sub SetDeviceWidth (ByRef window As Window, deviceWidth As Double)

参数

window
Window

要修改的窗口

deviceWidth
Double

设备单位的新宽度

适用于