Form.GetAutoScaleSize(Font) 메서드

정의

주의

This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202

주의

This method has been deprecated. Use the AutoScaleDimensions property instead. https://go.microsoft.com/fwlink/?linkid=14202

지정된 글꼴에 따라 폼의 크기를 자동으로 조정하는 크기를 가져옵니다.

public:
 static System::Drawing::SizeF GetAutoScaleSize(System::Drawing::Font ^ font);
public static System.Drawing.SizeF GetAutoScaleSize (System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  http://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize (System.Drawing.Font font);
[System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")]
public static System.Drawing.SizeF GetAutoScaleSize (System.Drawing.Font font);
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  http://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
[<System.Obsolete("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")>]
static member GetAutoScaleSize : System.Drawing.Font -> System.Drawing.SizeF
Public Shared Function GetAutoScaleSize (font As Font) As SizeF

매개 변수

font
Font

자동 조정되는 폼의 기본 크기를 결정하기 위한 글꼴을 나타내는 Font입니다.

반환

자동으로 조정되는 폼의 크기를 나타내는 SizeF입니다.

특성

설명

중요

메서드는 GetAutoScaleSize .NET Framework 2.0부터 사용되지 않습니다. 이 멤버는 이전 버전과의 호환성을 위해 유지되었습니다. 자동 크기 조정에 대한 자세한 내용은 Windows Forms 자동 크기 조정을 참조하세요.

이 메서드를 사용하여 폼에 글꼴을 적용하기 전에 특정 글꼴에 대해 폼의 크기를 자동으로 조정할 수 있습니다. 폼에 현재 할당된 글꼴에 따라 폼이 자동 크기 조정되는 크기를 확인하려면 속성을 사용합니다 AutoScaleBaseSize .

적용 대상

추가 정보