Control.DeviceDpi 属性

定义

获取显示当前控件的显示设备的 DPI 值。

C#
[System.ComponentModel.Browsable(false)]
public int DeviceDpi { get; }

属性值

显示设备的 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