Control.DeviceDpi 属性
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取显示当前控件的显示设备的 DPI 值。
public:
property int DeviceDpi { int get(); };
C#
[System.ComponentModel.Browsable(false)]
public int DeviceDpi { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DeviceDpi : int
Public ReadOnly Property DeviceDpi As Integer
显示设备的 DPI 值。
- 属性
产品 | 版本 |
---|---|
.NET Framework | 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |