Returns the effective DPI for the control's current monitor.
| C# | int DPI = object.DPI; |
| VB.NET | DPI = object.DPI As Integer |
| C++ | long DPI = object->DPI; long DPI = object->GetDPI(); |
| C | HRESULT object->get_DPI(long* DPI); |
object
DPI
Returns the effective DPI for the control's current monitor.
The DPI property returns the DPI the control uses to size and draw its parts. A value of 96 corresponds to 100% scaling. p In a per-monitor DPI aware application (PerMonitorV2), the control follows the DPI of its monitor and raises the DPIChanged event when it changes. In an application that is not DPI aware, the DPI is 96. The dropdown of a date field control uses the DPI of the monitor it opens on.
See Also SftCalendar Object | Object Hierarchy | Per-Monitor DPI and Scaling