DpiHelper.SetDeviceWidth(Window, Double) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用设备单位设置窗口的宽度
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
设备单位的新宽度