System.Windows.Forms.PrintPreviewDialog.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.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

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