Note: This API is now obsolete.
Gets the size when autoscaling the form based on a specified font.
<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
[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 )
[<ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202")>] static member GetAutoScaleSize : font:Font -> SizeF
The GetAutoScaleSize method is obsolete in.NET Framework version 2.0. This member has been retained for backward compatibility. For more information about automatic scaling, see Automatic Scaling in Windows Forms.
You can use this method to determine the size a form would autoscale to for a specific font before applying the font to the form. If you want to determine the size a form is autoscaled to based on the font currently assigned to the form, use the AutoScaleBaseSize property.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2