TextBoxBase.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) メソッド

定義

TextBoxBase コントロールの指定した境界を設定します。

protected:
 override void SetBoundsCore(int x, int y, int width, int height, System::Windows::Forms::BoundsSpecified specified);
protected override void SetBoundsCore (int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified);
override this.SetBoundsCore : int * int * int * int * System.Windows.Forms.BoundsSpecified -> unit
Protected Overrides Sub SetBoundsCore (x As Integer, y As Integer, width As Integer, height As Integer, specified As BoundsSpecified)

パラメーター

x
Int32

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

y
Int32

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

width
Int32

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

height
Int32

使用しません。

specified
BoundsSpecified

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

注釈

TextBoxBaseプロパティが で、 プロパティが PreferredHeight の場合、コントロールは true プロパティをAutoSize使用して境界をMultilinefalse設定します。

通常、パラメーターに含 specified まれていない境界に対応するパラメーターは、現在の値と共に渡されます。 たとえば、 プロパティの Heightプロパティ Width、、または XY プロパティは、コントロールの Location 現在のインスタンスへの参照と共に渡すことができます。 ただし、渡されるすべての値が受け入れられ、コントロールに適用されます。

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

注意 (継承者)

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

適用対象