ScrollBar.GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 方法

定義

傳回以指定的量來縮放 ScrollBar 時所使用的界限。

protected:
 override System::Drawing::Rectangle GetScaledBounds(System::Drawing::Rectangle bounds, System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected override System.Drawing.Rectangle GetScaledBounds (System.Drawing.Rectangle bounds, System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
override this.GetScaledBounds : System.Drawing.Rectangle * System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> System.Drawing.Rectangle
Protected Overrides Function GetScaledBounds (bounds As Rectangle, factor As SizeF, specified As BoundsSpecified) As Rectangle

參數

bounds
Rectangle

指定初始界限的 Rectangle

factor
SizeF

SizeF,指出應增加的目前界限量。

specified
BoundsSpecified

BoundsSpecified 值的位元 (Bitwise) 組合,指出如何定義 GetScaledBounds(Rectangle, SizeF, BoundsSpecified) 所傳回的控制項大小和位置。

傳回

指定縮放界限的 Rectangle

備註

這是 方法用來 ScaleControl 傳回控制項應該縮放的界限的協助程式方法。 如果您想要重複使用 ScaleControl 調整邏輯,但必須提供自己的界限,您可以覆寫這個方法。

適用於