Returns the effective DPI for the control's current monitor.
Get
| 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); |
| VB | DPI = object.DPI As Long |
object
DPI
Returns the effective DPI for the control's current monitor.
The DPI property returns the effective DPI for the control's current monitor.
On a per-monitor DPI-aware host, the value changes when the control moves to a monitor with a different DPI; the DPIChanged event is raised when this happens. A value of 96 corresponds to 100% scaling.
See Also SftButton Object | Object Hierarchy | Per-Monitor DPI and Scaling