Form.AutoScaleBaseSize Property

Definition

Gets or sets the base size used for autoscaling of the form.

C#
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Size AutoScaleBaseSize { get; set; }

Property Value

A Size that represents the base size that this form uses for autoscaling.

Attributes

Remarks

Important

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

The value of the AutoScaleBaseSize property is used at form-display time to compute the scaling factor for the form. The autoscaling base size is used by the form as a baseline for comparison to the system's font size to determine how much to scale the form when autoscaling is used. If you want to determine the size a form will auto scale to based on a specific font, use the GetAutoScaleSize method.

Note

The value of this property is used when the form is initially created. Once the property is set, it cannot be changed.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also