ContainerControl.AutoScaleFactor 屬性

定義

取得目前與設計階段自動縮放維度之間的縮放比例。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

屬性值

SizeF

SizeF,其中含有目前與設計階段自動縮放維度之間的縮放比例。A SizeF containing the scaling ratio between the current and design-time scaling automatic scaling dimensions.

備註

AutoScaleFactor屬性代表和屬性之間的縮放比例 CurrentAutoScaleDimensions AutoScaleDimensionsThe 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,96) 則 AutoScaleFactor 是 (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 Forms 中的自動調整For more information about automatic scaling, see Automatic Scaling in Windows Forms.

適用於

另請參閱