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

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

Control.SetBoundsCore メソッド

このコントロール指定した境界設定する作業実行します

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

Protected Overridable Sub
 SetBoundsCore ( _
    x As Integer, _
    y As Integer, _
    width As Integer, _
    height As Integer, _
    specified As BoundsSpecified _
)
Dim x As Integer
Dim y As Integer
Dim width As Integer
Dim height As Integer
Dim specified As BoundsSpecified

Me.SetBoundsCore(x, y, width, height, specified)
protected virtual void SetBoundsCore (
    int x,
    int y,
    int width,
    int height,
    BoundsSpecified specified
)
protected:
virtual void SetBoundsCore (
    int x, 
    int y, 
    int width, 
    int height, 
    BoundsSpecified specified
)
protected void SetBoundsCore (
    int x, 
    int y, 
    int width, 
    int height, 
    BoundsSpecified specified
)
protected function SetBoundsCore (
    x : int, 
    y : int, 
    width : int, 
    height : int, 
    specified : BoundsSpecified
)

パラメータ

x

コントロール新しLeft プロパティ値。

y

コントロール新しTop プロパティ値。

width

コントロール新しWidth プロパティ値。

height

コントロール新しHeight プロパティ値。

specified

BoundsSpecified 値のビットごとの組み合わせ

解説解説
使用例使用例

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

Protected Overrides Sub
 SetBoundsCore(x As Integer, _
  y As Integer, width As
 Integer, _
  height As Integer, specified As
 BoundsSpecified)
   ' Set a fixed height and width for the control.
   MyBase.SetBoundsCore(x, y, 150, 75, specified)
End Sub
protected override void SetBoundsCore(int
 x, int y, 
   int width, int height, BoundsSpecified specified)
{
   // Set a fixed height and width for the control.
   base.SetBoundsCore(x, y, 150, 75, specified);
}
protected:
   virtual void SetBoundsCore( int x, int
 y, int width, int height, BoundsSpecified
 specified ) override
   {
      // Set a fixed height and width for the control.
      UserControl::SetBoundsCore( x, y, 150, 75, specified );
   }
protected void SetBoundsCore(int
 x, int y, int width, int
 height,
    BoundsSpecified specified)
{
    // Set a fixed height and width for the control.
    super.SetBoundsCore(x, y, 150, 75, specified);
} //SetBoundsCore
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Control.SetBoundsCore メソッド」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS