# Control.ScaleControl.ScaleControl.ScaleControl.Scale Method

## 多載

 Scale(SizeF) Scale(SizeF) Scale(SizeF) Scale(SizeF) 根據指定的縮放比例來縮放控制項和所有子控制項。Scales the control and all child controls by the specified scaling factor. Scale(Single) Scale(Single) Scale(Single) Scale(Single) 縮放控制項和任何的子控制項。Scales the control and any child controls. Scale(Single, Single) Scale(Single, Single) Scale(Single, Single) Scale(Single, Single) 縮放整個控制項和任何的子控制項。Scales the entire control and any child controls.

## Scale(SizeF)Scale(SizeF)Scale(SizeF)Scale(SizeF)

``````public:
void Scale(System::Drawing::SizeF factor);``````
``public void Scale (System.Drawing.SizeF factor);``
``member this.Scale : System.Drawing.SizeF -> unit``
``Public Sub Scale (factor As SizeF)``

#### 參數

factor
SizeF SizeF SizeF SizeF

SizeF，包含水平和垂直縮放比例。A SizeF containing the horizontal and vertical scaling factors.

### 備註

Scale方法根據指定的縮放比例來縮放控制項`factor`The Scale method scales the control by the specified scaling `factor`. 它也會以遞迴方式調整所有子控制項，如果ScaleChildren屬性是`true`It also recursively scales all child controls if the ScaleChildren property is `true`. 就內部而言，這個方法會呼叫ScaleControl調整每個控制項。Internally, this method calls ScaleControl to scale each control.

## Scale(Single)Scale(Single)Scale(Single)Scale(Single)

``````public:
void Scale(float ratio);``````
``````[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float ratio);``````
``member this.Scale : single -> unit``
``Public Sub Scale (ratio As Single)``

#### 參數

ratio
Single Single Single Single

## Scale(Single, Single)Scale(Single, Single)Scale(Single, Single)Scale(Single, Single)

``````public:
void Scale(float dx, float dy);``````
``````[System.Obsolete("This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void Scale (float dx, float dy);``````
``member this.Scale : single * single -> unit``
``Public Sub Scale (dx As Single, dy As Single)``

#### 參數

dx
Single Single Single Single

dy
Single Single Single Single