ToolStrip.RescaleConstantsForDpi(Int32, Int32) メソッド

定義

派生クラス内でのオーバーライド時に、コントロールの描画に使用される任意のマジック ナンバーの再スケーリングを処理します。

protected:
 override void RescaleConstantsForDpi(int deviceDpiOld, int deviceDpiNew);
protected override void RescaleConstantsForDpi (int deviceDpiOld, int deviceDpiNew);
override this.RescaleConstantsForDpi : int * int -> unit
Protected Overrides Sub RescaleConstantsForDpi (deviceDpiOld As Integer, deviceDpiNew As Integer)

パラメーター

deviceDpiOld
Int32

前の DPI 値です。

deviceDpiNew
Int32

新しい DPI 値です。

注釈

現在の DPI 値を取得するには、基本クラス メソッドを呼び出す必要があります。 このメソッドはRescaleConstantsForDpi、アプリケーションがモニターごとのバージョン 2 を選択し、ターゲットが 4.7.1 以降.NET Framework、EnableDpiChangedMessageHandling構成スイッチがEnableDpiChangedHighDpiImprovementsオンになっている場合にのみ呼び出されます。

適用対象