共用方式為


Control.Scale 方法

定義

縮放控制項和任何的子控制項。

多載

Scale(SizeF)

根據指定的縮放比例來縮放控制項和所有子控制項。

Scale(Single)
已過時。
已過時。

縮放控制項和任何的子控制項。

Scale(Single, Single)
已過時。
已過時。

縮放整個控制項和任何的子控制項。

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,包含水平和垂直縮放比例。

備註

方法會 Scale 依指定的縮放 factor 來調整控制項。 如果 屬性為 trueScaleChildren 它也會遞迴調整所有子控制項。 在內部,這個方法會呼叫 ScaleControl 以調整每個控制項。

另請參閱

適用於

Scale(Single)

警告

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

警告

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

縮放控制項和任何的子控制項。

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

參數

ratio
Single

用於縮放的比例。

屬性

適用於

Scale(Single, Single)

警告

This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/?linkid=14202

警告

This method has been deprecated. Use the Scale(SizeF ratio) method instead. https://go.microsoft.com/fwlink/?linkid=14202

縮放整個控制項和任何的子控制項。

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

參數

dx
Single

水平縮放比例。

dy
Single

垂直縮放比例。

屬性

適用於