Form.OnGetDpiScaledSize(Int32, Int32, Size) Metoda

Definice

Vyvolá událost GetDpiScaledSize.

protected:
 virtual bool OnGetDpiScaledSize(int deviceDpiOld, int deviceDpiNew, System::Drawing::Size % desiredSize);
[System.ComponentModel.Browsable(true)]
protected virtual bool OnGetDpiScaledSize(int deviceDpiOld, int deviceDpiNew, ref System.Drawing.Size desiredSize);
[<System.ComponentModel.Browsable(true)>]
abstract member OnGetDpiScaledSize : int * int * Size -> bool
override this.OnGetDpiScaledSize : int * int * Size -> bool
Protected Overridable Function OnGetDpiScaledSize (deviceDpiOld As Integer, deviceDpiNew As Integer, ByRef desiredSize As Size) As Boolean

Parametry

deviceDpiOld
Int32

Hodnota DPI pro zobrazovací zařízení, kde byl formulář dříve zobrazen.

deviceDpiNew
Int32

Hodnota DPI pro zobrazovací zařízení, kde bude formulář zobrazen.

desiredSize
Size

Představuje Size novou velikost formuláře na základě nové hodnoty DPI.

Návraty

true v případě úspěchu; jinak false.

Atributy

Platí pro