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

屬性值

SizeF,其中含有目前與設計階段自動縮放維度之間的縮放比例。A 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 Forms 中的自動調整For more information about automatic scaling, see Automatic Scaling in Windows Forms.

適用於

另請參閱