WindowsFormsHost.ScaleChild(Vector) 메서드

정의

호스트된 Windows Forms 컨트롤의 크기를 조정하고 배율 인수를 추적합니다.

protected:
 virtual System::Windows::Vector ScaleChild(System::Windows::Vector newScale);
protected virtual System.Windows.Vector ScaleChild(System.Windows.Vector newScale);
abstract member ScaleChild : System.Windows.Vector -> System.Windows.Vector
override this.ScaleChild : System.Windows.Vector -> System.Windows.Vector
Protected Overridable Function ScaleChild (newScale As Vector) As Vector

매개 변수

newScale
Vector

새 배율 인수입니다.

반품

호스트된 Windows Forms 컨트롤에 적용되는 배율 인수를 나타내는 Vector.

설명

Windows Forms 컨트롤은 WPF 요소와 동일한 방식으로 크기 조정을 지원하지 않습니다. 예를 들어 Windows Forms 컨트롤의 배율을 1에서 0.5로 조정하고 1인수로 다시 조정해도 일반적으로 컨트롤의 원래 크기는 복구되지 않습니다. 자세한 내용을 보려면 "WindowsFormsHost 요소에 대한 레이아웃 고려 사항"을 참조하세요.

ScaleChild 메서드를 재정의하여 호스팅된 Windows Forms 컨트롤에 대한 사용자 지정 크기 조정 동작을 제공하십시오.

적용 대상