PowerTools CalendarGrid for Windows Forms 1.0J
SetBoundsCore メソッド (EditBase)

コントロールの新しい System.Windows.Forms.Control.Left プロパティ値。
コントロールの新しい System.Windows.Forms.Control.Top プロパティ値。
コントロールの新しい System.Windows.Forms.Control.Width プロパティ値。
コントロールの新しい System.Windows.Forms.Control.Height プロパティ値。
System.Windows.Forms.BoundsSpecified 値のビットごとの組み合わせ。
EditBase コントロールの指定した境界を設定します。
構文
protected override void SetBoundsCore( 
   int x,
   int y,
   int width,
   int height,
   BoundsSpecified specified
)
Protected Overrides Sub SetBoundsCore( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal specified As BoundsSpecified _
) 
 

パラメータ

x
コントロールの新しい System.Windows.Forms.Control.Left プロパティ値。
y
コントロールの新しい System.Windows.Forms.Control.Top プロパティ値。
width
コントロールの新しい System.Windows.Forms.Control.Width プロパティ値。
height
コントロールの新しい System.Windows.Forms.Control.Height プロパティ値。
specified
System.Windows.Forms.BoundsSpecified 値のビットごとの組み合わせ。
解説
通常、境界に対応するパラメーターのうち specified パラメーターに含まれないものは、現在の値で渡されます。たとえば、System.Windows.Forms.Control.Height プロパティ、System.Windows.Forms.Control.Width プロパティ、System.Windows.Forms.Control.Location プロパティの System.Drawing.Point.X または System.Drawing.Point.Y プロパティは、コントロールの現在のインスタンスへの参照を使って渡すことができます。ただし、渡された値はすべて受け入れられ、コントロールに適用されます。

specified パラメーターは、アプリケーションによって変更されたコントロールの System.Windows.Forms.Control.Bounds の要素を表します。たとえば、コントロールの System.Drawing.Size を変更した場合、specified パラメーターの値は System.Windows.Forms.BoundsSpecifiedSize 値になります。ただし、設定されている System.Windows.Forms.Control.Dock プロパティに応じて Size が調整される場合、specified パラメーターの値は BoundsSpecified の None 値になります。

継承時の注意:

派生クラスで SetBoundsCore をオーバーライドする場合は、基本クラスの SetBoundsCore メソッドを呼び出して、強制的にコントロールの境界を変更してください。派生クラスでは、SetBoundsCore メソッドにサイズの制限を追加できます。

参照

EditBase クラス
EditBase メンバ

 

 


© 2014 GrapeCity inc. All rights reserved.