Control.SetClientSizeCore メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Control.SetClientSizeCore メソッドの意味・解説 

Control.SetClientSizeCore メソッド

コントロールクライアント領域サイズ設定します

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

Protected Overridable Sub
 SetClientSizeCore ( _
    x As Integer, _
    y As Integer _
)
Dim x As Integer
Dim y As Integer

Me.SetClientSizeCore(x, y)
protected virtual void SetClientSizeCore (
    int x,
    int y
)
protected:
virtual void SetClientSizeCore (
    int x, 
    int y
)
protected void SetClientSizeCore (
    int x, 
    int y
)
protected function SetClientSizeCore (
    x : int, 
    y : int
)

パラメータ

x

クライアント領域の幅 (ピクセル単位)。

y

クライアント領域の高さ (ピクセル単位)。

解説解説
使用例使用例

SetClientSizeCore メソッドオーバーライドして、コントロール正方形に保つコード例次に示します。この例では、Control クラスから直接的または間接的に派生したクラス存在している必要があります

Protected Overrides Sub
 SetClientSizeCore(x As Integer, y As
 Integer)
   ' Keep the client size square.
   If x > y Then
      MyBase.SetClientSizeCore(x, x)
   Else
      MyBase.SetClientSizeCore(y, y)
   End If
End Sub
protected override void SetClientSizeCore(int
 x, int y)
{
   // Keep the client size square.
   if(x > y)
   {
      base.SetClientSizeCore(x, x);
   }
   else
   {
      base.SetClientSizeCore(y, y);
   }
}
protected:
   virtual void SetClientSizeCore( int x, int
 y ) override
   {
      // Keep the client size square.
      if ( x > y )
      {
         UserControl::SetClientSizeCore( x, x );
      }
      else
      {
         UserControl::SetClientSizeCore( y, y );
      }
   }
protected void SetClientSizeCore(int
 x, int y)
{
    // Keep the client size square.
    if (x > y) {
        super.SetClientSizeCore(x, x);
    }
    else {
        super.SetClientSizeCore(y, y);
    }
} //SetClientSizeCore
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

Control.SetClientSizeCore メソッドのお隣キーワード
検索ランキング

   

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



Control.SetClientSizeCore メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS