Export (0) Print
Expand All

Form.AutoScaleBaseSize Property

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

[Visual Basic]
Public Overridable Property AutoScaleBaseSize As Size
[C#]
public virtual Size AutoScaleBaseSize {get; set;}
[C++]
public: __property virtual Size get_AutoScaleBaseSize();
public: __property virtual void set_AutoScaleBaseSize(Size);
[JScript]
public function get AutoScaleBaseSize() : Size;
public function set AutoScaleBaseSize(Size);

Property Value

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

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Form Class | Form Members | System.Windows.Forms Namespace | AutoScale | GetAutoScaleSize

Show:
© 2015 Microsoft