Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 4
Form Class
Form Properties
 AutoScaleBaseSize Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2010/.NET Framework 4

Other versions are also available for the following:
.NET Framework Class Library
Form..::.AutoScaleBaseSize Property

Gets or sets the base size used for autoscaling of the form.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
Visual Basic
<BrowsableAttribute(False)> _
Public Overridable Property AutoScaleBaseSize As Size
C#
[BrowsableAttribute(false)]
public virtual Size AutoScaleBaseSize { get; set; }
Visual C++
[BrowsableAttribute(false)]
public:
virtual property Size AutoScaleBaseSize {
    Size get ();
    void set (Size value);
}
F#
[<BrowsableAttribute(false)>]
abstract AutoScaleBaseSize : Size with get, set
[<BrowsableAttribute(false)>]
override AutoScaleBaseSize : Size with get, set

Property Value

Type: System.Drawing..::.Size
A Size that represents the base size that this form uses for autoscaling.
Important noteImportant

This member has been retained for backward compatibility. For more information about automatic scaling, see Automatic Scaling in Windows Forms.

The value of the AutoScaleBaseSize property is used at form-display time to compute the scaling factor for the form. The autoscaling base size is used by the form as a baseline for comparison to the system's font size to determine how much to scale the form when autoscaling is used. If you want to determine the size a form will auto scale to based on a specific font, use the GetAutoScaleSize method.

NoteNote

The value of this property is used when the form is initially created. Once the property is set, it cannot be changed.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker