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 值的位元組合。 任何未指定的參數會使用目前的值。

備註

如果您將 AutoSize 屬性設定為 true ,則標籤的大小會調整為符合標籤的內容。 如果您在呼叫 SetBoundsCore 方法之後設定 AutoSizefalse ,則標籤將會收到您在呼叫中指定的維度。

適用於