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.

AutoScaleBaseSize属性在窗体显示时用来计算在窗体的刻度因子。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. 如果你想要确定大小窗体将自动调整为根据特定的字体,使用GetAutoScaleSize方法。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.

适用于

另请参阅