Form.OnGetDpiScaledSize Method (Int32, Int32, Size)
Raises the GetDpiScaledSize event.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
[<BrowsableAttribute(true)>] abstract OnGetDpiScaledSize : deviceDpiOld:int * deviceDpiNew:int * desiredSize:Size byref -> bool [<BrowsableAttribute(true)>] override OnGetDpiScaledSize : deviceDpiOld:int * deviceDpiNew:int * desiredSize:Size byref -> bool
Parameters
- deviceDpiOld
-
Type:
System.Int32
The DPI value for the display device where the form was previously displayed.
- deviceDpiNew
-
Type:
System.Int32
The DPI value for the display device where the form will be displayed.
- desiredSize
-
Type:
System.Drawing.Size
A Size representing the new size of the form based on the new DPI value.
.NET Framework
Available since 4.7
Available since 4.7
Show: