次の方法で共有


Control.SetBounds メソッド (Int32, Int32, Int32, Int32)

コントロールの範囲を指定した位置とサイズに設定します。

Overloads Public Sub SetBounds( _
   ByVal x As Integer, _   ByVal y As Integer, _   ByVal width As Integer, _   ByVal height As Integer _)
[C#]
public void SetBounds(intx,inty,intwidth,intheight);
[C++]
public: void SetBounds(intx,inty,intwidth,intheight);
[JScript]
public function SetBounds(
   x : int,y : int,width : int,height : int);

パラメータ

  • x
    コントロールの新しい Left プロパティ値。
  • y
    コントロールの新しい Top プロパティ値。
  • width
    コントロールの新しい Width プロパティ値。
  • height
    コントロールの新しい Height プロパティ値。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

Control クラス | Control メンバ | System.Windows.Forms 名前空間 | Control.SetBounds オーバーロードの一覧 | Bounds | SetBoundsCore | Layout