編輯

共用方式為


GroupBox.ScaleControl(SizeF, BoundsSpecified) Method

Definition

Scales 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)

Parameters

factor
SizeF

The SizeF that indicates the height and width of the scaled control.

specified
BoundsSpecified

One of the BoundsSpecified values that indicates how the control should be scaled.

Remarks

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. You can omit scaling in any direction by changing the value of the specified parameter.

Applies to