Control.Scale 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
這會調整控制範圍,也會影響任何子控制。
多載
| 名稱 | Description |
|---|---|
| Scale(SizeF) |
依照指定的縮放因子調整控制項及所有子控制項。 |
| Scale(Single) |
已淘汰.
已淘汰.
這會調整控制範圍,也會影響任何子控制。 |
| Scale(Single, Single) |
已淘汰.
已淘汰.
可以擴展整個控制系統和子控制。 |
Scale(SizeF)
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
依照指定的縮放因子調整控制項及所有子控制項。
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)
參數
備註
此 Scale 方法依據指定的縮放 factor來縮放控制。 若屬性 ScaleChildren 為 true,則遞迴地縮放所有子控制項。 在內部,此方法需要 ScaleControl 對每個控制項進行縮放。
另請參閱
- ScaleChildren
- ScaleControl(SizeF, BoundsSpecified)
- GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
適用於
Scale(Single)
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
警告
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)
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
- 來源:
- Control.cs
警告
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
垂直縮放因子。
- 屬性