System.Windows.Forms.ContainerControl.AutoScaleMode Property

Gets or sets the automatic scaling mode of the control.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.Browsable(false)]
public AutoScaleMode AutoScaleMode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContainerControl.AutoScaleMode property specifies the current automatic scaling mode of this control. Scaling by AutoScaleMode.Font is useful if you want to have a control or form stretch or shrink according to the size of the fonts in the operating system, and should be used when the absolute size of the control or form does not matter. Scaling by AutoScaleMode.Dpi is useful when you want to size a control or form relative to the screen. For example, you may want to use dots per inch (DPI) scaling on a control displaying a chart or other graphic so that it always occupies a certain percentage of the screen.

For more information about automatic scaling, see Automatic Scaling in Windows Forms.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0