GroupBox.ScaleControl(SizeF, BoundsSpecified) 方法

定義

依據指定的因數和縮放比例指示縮放 GroupBoxScales the GroupBox by the specified factor and scaling instruction.

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,表示縮放控制項的高度和寬度。The SizeF that indicates the height and width of the scaled control.

specified
BoundsSpecified

其中一個 BoundsSpecified 值,表示應該如何縮放控制項。One of the BoundsSpecified values that indicates how the control should be scaled.

備註

如果控制項是最上層,這個方法將不會縮放控制項的位置。If the control is top level, this method will not scale the control's location. 這個方法不會調整子系或自動調整大小控制項的大小。This method does not scale children or the size of automatically sized controls. 您可以藉由變更 specified 參數的值,省略任何方向的相應縮小。You can omit scaling in any direction by changing the value of the specified parameter.

適用於