다음을 통해 공유


Form.GetAutoScaleSize 메서드

참고: 이 메서드는 이제 사용되지 않습니다.

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

네임스페이스: System.Windows.Forms
어셈블리: System.Windows.Forms(system.windows.forms.dll)

구문

‘선언
<ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")> _
Public Shared Function GetAutoScaleSize ( _
    font As Font _
) As SizeF
‘사용 방법
Dim font As Font
Dim returnValue As SizeF

returnValue = Form.GetAutoScaleSize(font)
[ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public static SizeF GetAutoScaleSize (
    Font font
)
[ObsoleteAttribute(L"This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public:
static SizeF GetAutoScaleSize (
    Font^ font
)
/** @attribute ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202") */ 
public static SizeF GetAutoScaleSize (
    Font font
)
ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead.  https://go.microsoft.com/fwlink/?linkid=14202") 
public static function GetAutoScaleSize (
    font : Font
) : SizeF

매개 변수

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

반환 값

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

설명

중요

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

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

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

1.0, 1.1에서 지원
2.0에서 사용되지 않음(컴파일러 경고)

참고 항목

참조

Form 클래스
Form 멤버
System.Windows.Forms 네임스페이스
AutoScaleBaseSize