System.Windows.Forms.ContainerControl.AutoScaleDimensions Property

Gets or sets the dimensions that the control was designed to.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public System.Drawing.SizeF AutoScaleDimensions { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContainerControl.AutoScaleDimensions property represents the DPI or font setting of the screen that the control was scaled to or designed for. Specifically, at design time this property will be set by the Windows Forms designer to the value your monitor is currently using. Then, when the form loads at run time, if the ContainerControl.CurrentAutoScaleDimensions property is different from the ContainerControl.AutoScaleDimensions, the ContainerControl.PerformAutoScale method will be called to perform scaling of the control and all of its children. Afterwards, ContainerControl.AutoScaleDimensions will be updated to reflect the new scaling size.

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