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를 옵트인하고, .NET Framework 4.7.1 이상을 대상으로 하고, 구성 스위치와 EnableDpiChangedHighDpiImprovements 구성 스위치가 켜져 있는 EnableDpiChangedMessageHandling 경우에만 호출됩니다.

적용 대상