Control.Scale メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
コントロールおよび子コントロールのスケールを設定します。
Scale(SizeF) |
指定されたスケール ファクターによってコントロールおよびすべての子コントロールのスケールを設定します。 |
Scale(Single) |
古い.
古い.
コントロールおよび子コントロールのスケールを設定します。 |
Scale(Single, Single) |
古い.
古い.
コントロール全体および子コントロールのスケールを設定します。 |
指定されたスケール ファクターによってコントロールおよびすべての子コントロールのスケールを設定します。
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
。 また、 プロパティtrue
が の場合は、すべての子コントロールを再帰的にScaleChildrenスケーリングします。 内部的には、このメソッドは を呼び出 ScaleControl して各コントロールをスケーリングします。
こちらもご覧ください
- ScaleChildren
- ScaleControl(SizeF, BoundsSpecified)
- GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
注意事項
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
スケーリングに使用する比率。
- 属性
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン (廃止) |
---|---|
.NET Framework | 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
Windows Desktop | (3.0, 3.1, 5, 6, 7, 8, 9) |
注意事項
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
垂直方向のスケール ファクター。
- 属性
適用対象
.NET Framework 4.8.1 およびその他のバージョン
製品 | バージョン (廃止) |
---|---|
.NET Framework | 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1) |
Windows Desktop | (3.0, 3.1, 5, 6, 7, 8, 9) |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。