Form.OnGetDpiScaledSize Method (Int32, Int32, Size)

 

Raises the GetDpiScaledSize event.

Namespace:   System.Windows.Forms
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.

Return Value

Type: System.Boolean

true if successful; otherwise false.

.NET Framework
Available since 4.7
Return to top
Show: