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

定義

ラベルの指定した境界を設定します。

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

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

specified
BoundsSpecified

BoundsSpecified 値のビットごとの組み合わせ。 指定されていないパラメーターについては、現在の値が使用されます。

注釈

プロパティtrueAutoSize設定すると、ラベルの内容に合わせてラベルのサイズが変更されます。 メソッドの呼び出し後にfalse設定AutoSizeした場合、ラベルは呼び出SetBoundsCoreしで指定したディメンションを受け取ります。

適用対象