Form.AutoScaleBaseSize Form.AutoScaleBaseSize Form.AutoScaleBaseSize Form.AutoScaleBaseSize Property

定义

获取或设置用于自动缩放窗体的基大小。Gets or sets the base size used for autoscaling of the form.

public:
 virtual property System::Drawing::Size AutoScaleBaseSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
[System.ComponentModel.Browsable(false)]
public virtual System.Drawing.Size AutoScaleBaseSize { get; set; }
member this.AutoScaleBaseSize : System.Drawing.Size with get, set
Public Overridable Property AutoScaleBaseSize As Size

属性值

Size,表示此窗体用于自动缩放的基大小。A Size that represents the base size that this form uses for autoscaling.

注解

重要

保留此成员是为了向后兼容。This member has been retained for backward compatibility. 有关自动缩放的详细信息,请参阅Windows 窗体中的自动缩放For more information about automatic scaling, see Automatic Scaling in Windows Forms.

@No__t-0 属性的值在窗体显示时使用,以计算窗体的缩放系数。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. 如果要根据特定字体确定窗体将自动缩放到的大小,请使用 @no__t 的方法。If you want to determine the size a form will auto scale to based on a specific font, use the GetAutoScaleSize method.

备注

最初创建窗体时,将使用此属性的值。The value of this property is used when the form is initially created. 设置属性后,不能对其进行更改。Once the property is set, it cannot be changed.

适用于

另请参阅