Form::GetAutoScaleSize Method (Font^)
.NET Framework (current version)
Note: This API is now obsolete.Namespace:
System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Return to top
Gets the size when autoscaling the form based on a specified font.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [ObsoleteAttribute("This method has been deprecated. Use the AutoScaleDimensions property instead. http://go.microsoft.com/fwlink/?linkid=14202")] static SizeF GetAutoScaleSize( Font^ font )
Parameters
- font
-
Type:
System.Drawing::Font^
A Font representing the font to determine the autoscaled base size of the form.
Important |
|---|
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.
.NET Framework
Available since 1.1
Available since 1.1
Show:
