ScrollableControl.ScaleControl(SizeF, BoundsSpecified) ScrollableControl.ScaleControl(SizeF, BoundsSpecified) ScrollableControl.ScaleControl(SizeF, BoundsSpecified) ScrollableControl.ScaleControl(SizeF, BoundsSpecified) Method

定義

縮放控制項的位置、大小、邊框間距和邊界。Scales a control's location, size, padding and margin.

protected:
 override void ScaleControl(System::Drawing::SizeF factor, System::Windows::Forms::BoundsSpecified specified);
protected override void ScaleControl (System.Drawing.SizeF factor, System.Windows.Forms.BoundsSpecified specified);
override this.ScaleControl : System.Drawing.SizeF * System.Windows.Forms.BoundsSpecified -> unit
Protected Overrides Sub ScaleControl (factor As SizeF, specified As BoundsSpecified)

參數

factor
SizeF SizeF SizeF SizeF

控制項高度與寬度的縮放比例。The factor by which the height and width of the control will be scaled.

specified
BoundsSpecified BoundsSpecified BoundsSpecified BoundsSpecified

BoundsSpecified 值,指定在定義控制項的大小和位置時所用的控制項範圍。A BoundsSpecified value that specifies the bounds of the control to use when defining its size and position.

適用於

另請參閱