ContainerControl.AutoScaleFactor ContainerControl.AutoScaleFactor ContainerControl.AutoScaleFactor ContainerControl.AutoScaleFactor Property

定义

获取当前和设计时自动缩放尺寸之间的缩放因子。Gets the scaling factor between the current and design-time automatic scaling dimensions.

protected:
 property System::Drawing::SizeF AutoScaleFactor { System::Drawing::SizeF get(); };
protected System.Drawing.SizeF AutoScaleFactor { get; }
member this.AutoScaleFactor : System.Drawing.SizeF
Protected ReadOnly Property AutoScaleFactor As SizeF

属性值

包含当前和设计时自动缩放尺寸之间的缩放比率的 SizeFA SizeF containing the scaling ratio between the current and design-time scaling automatic scaling dimensions.

注解

属性表示CurrentAutoScaleDimensionsAutoScaleDimensions属性之间的缩放系数。 AutoScaleFactorThe AutoScaleFactor property represents the scaling factor between the CurrentAutoScaleDimensions and AutoScaleDimensions properties. 此值是在需要时计算的。This value is calculated when it is required. 例如,如果CurrentAutoScaleDimensions为(192,144),且AutoScaleDimensions为(96 AutoScaleFactor ,96),则为(2.0,1.5)。For example, if CurrentAutoScaleDimensions is (192, 144) and AutoScaleDimensions is (96, 96) then the AutoScaleFactor is (2.0, 1.5).

有关自动缩放的详细信息,请参阅Windows 窗体中的自动缩放For more information about automatic scaling, see Automatic Scaling in Windows Forms.

适用于

另请参阅