Control.DeviceDpi Property

Definition

Gets the DPI value for the display device where the control is currently being displayed.

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

Property Value

The DPI value of the display device.

Attributes

Applies to

Product Versions
.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