System.Windows.Forms.Form.AutoScale Property

Gets or sets a value indicating whether the form adjusts its size to fit the height of the font used on the form and scales its controls.

Syntax

[System.Obsolete("This property has been deprecated in favor of AutoScaleMode.")]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.ComponentModel.Browsable(false)]
public bool AutoScale { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Note:

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

You can use this property to allow your form and its controls to automatically adjust based on changes in the font. This can be useful in applications where the font might increase or decrease based on the language specified for use by Windows.

To obtain the size the form will auto scale to, use the Form.AutoScaleBaseSize property. If you want to determine the size the form will auto scale to based on a specific font, use the Form.GetAutoScaleSize(System.Drawing.Font) method.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0