System.Windows.Forms
2.0.0.0
System.Enum
The class and classes derived from it, such as , can automatically resize themselves and their contents according to either the current system font or the resolution of the display, measured in dots per inch (DPI). The enumeration defines the automatic scaling modes supported by these classes and their derived types. A control's current mode can be accessed through its property.
Most business applications should use the automatic scaling mode. The scaling mode is useful for graphics-based applications and is compatible with the default scaling used by the .NET Compact Framework.
In the .NET Framework versions 1.0 and 1.1, automatic scaling was supported using a simpler mechanism that always relied on the current system font. This mechanism is now obsolete but still supported for backward compatibility. You can obtain the older scaling behavior by setting the property of the containing to true, which will also implicitly set the property to . Conversely, setting the property of a form will set to false, enabling the newer scaling mechanism introduced with the .NET Framework version 2.0.
Note that for Smartphone applications, this enumeration requires Windows Mobile Version 5.0 software for Smartphones.
Specifies the different types of automatic scaling modes supported by Windows Forms.
Field
System.Windows.Forms.AutoScaleMode
Controls scale relative to the display resolution. Common resolutions are 96 and 120 DPI.
2.0.0.0
Field
System.Windows.Forms.AutoScaleMode
Controls scale relative to the dimensions of the font the classes are using, which is typically the system font.
2.0.0.0
Field
System.Windows.Forms.AutoScaleMode
Controls scale according to the classes' parent's scaling mode. If there is no parent, automatic scaling is disabled.
2.0.0.0
Field
System.Windows.Forms.AutoScaleMode
Automatic scaling is disabled.
2.0.0.0