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

定義

擷取縮放控制項的範圍。

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

控制項範圍的高度和寬度。

specified
BoundsSpecified

其中一個 BoundsSpecified 值,指定在定義控制項的大小和位置時所用的控制項範圍。

傳回

Rectangle

Rectangle,表示縮放控制項的範圍。

適用於

另請參閱