System.Windows.Forms.ContainerControl.CurrentAutoScaleDimensions Property

Gets the current run-time dimensions of the screen.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
[System.ComponentModel.Browsable(false)]
public System.Drawing.SizeF CurrentAutoScaleDimensions { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContainerControl.CurrentAutoScaleDimensions property represents the reference dimensions on the current screen. In contrast, the ContainerControl.AutoScaleDimensions property represents the design-time reference dimensions of the design environment for the current control, while the ContainerControl.AutoScaleFactor property is the ratio of the two.

The interpretation of the dimension value depends on the ContainerControl.AutoScaleMode property in the following ways:

  • If the mode is AutoScaleMode.Dpi, this property represents the resolution of the screen, in dots per inch.

  • If the mode is AutoScaleMode.Font, this property represents the average font character size in pixels.

If the ContainerControl.AutoScaleMode property is set to AutoScaleMode.None, ContainerControl.CurrentAutoScaleDimensions is set equal to ContainerControl.AutoScaleDimensions.

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