Form.ClientSize プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Form.ClientSize プロパティの意味・解説 

Form.ClientSize プロパティ

フォームクライアント領域サイズ取得または設定します

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

<LocalizableAttribute(True)> _
Public Property ClientSize As
 Size
Dim instance As Form
Dim value As Size

value = instance.ClientSize

instance.ClientSize = value
[LocalizableAttribute(true)] 
public Size ClientSize { get; set;
 }
[LocalizableAttribute(true)] 
public:
property Size ClientSize {
    Size get ();
    void set (Size value);
}
/** @property */
public Size get_ClientSize ()

/** @property */
public void set_ClientSize (Size value)
public function get ClientSize
 () : Size

public function set ClientSize
 (value : Size)

プロパティ
フォームクライアント領域サイズを表す Size

解説解説
使用例使用例

フォームの Resize イベントイベント ハンドラ作成するコード例次に示します。このイベント ハンドラは、フォームClientSize プロパティ使用してbutton1 という名前の Button コントロールフォームクライアント領域全体占めるようにします。

Private Sub MyForm_Resize(sender As
 Object, e As EventHandler)
    ' Set the size of button1 to the size of the client area of the
 form.
    button1.Size = Me.ClientSize
End Sub 'MyForm_Resize
private void MyForm_Resize (Object sender,
 EventHandler e)
 {
    // Set the size of button1 to the size of the client area of the
 form.
    button1.Size = this.ClientSize;
 }
    
private:
   void MyForm_Resize( Object^ sender, EventHandler^ e )
   {
      // Set the size of button1 to the size of the client area of the
 form.
      button1->Size = this->ClientSize;
   }
private void MyForm_Resize(Object sender, EventHandler
 e)
{
    // Set the size of button1 to the size of the client area of the
 form.
    button1.set_Size(this.get_ClientSize());
} //MyForm_Resize
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からForm.ClientSize プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からForm.ClientSize プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からForm.ClientSize プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Form.ClientSize プロパティ」の関連用語

Form.ClientSize プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Form.ClientSize プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS