Form.GetAutoScaleSize メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

<ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead. http://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. http://go.microsoft.com/fwlink/?linkid=14202")] public static SizeF GetAutoScaleSize ( Font font )
[ObsoleteAttribute(L"This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202")] public: static SizeF GetAutoScaleSize ( Font^ font )
/** @attribute ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202") */ public static SizeF GetAutoScaleSize ( Font font )
ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202") public static function GetAutoScaleSize ( font : Font ) : SizeF
戻り値
フォームを自動スケールした後のサイズを表す SizeF。

![]() |
---|
GetAutoScaleSize メソッドは、.NET Framework Version 2.0 では使用されません。このメンバは、下位互換性のために残されています。自動スケーリングの詳細については、「Windows フォームにおける自動スケーリング」を参照してください。 |
このメソッドを使用すると、特定のフォントをフォームに適用する前に、そのフォントに合わせてフォームを自動スケールした場合のサイズを確認できます。フォームに現在割り当てられているフォントに基づいて、フォームが自動スケールされた場合のサイズを確認するには、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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からForm.GetAutoScaleSize メソッドを検索する場合は、下記のリンクをクリックしてください。

- Form.GetAutoScaleSize メソッドのページへのリンク