共用方式為


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 。 對於未指定的參數,將使用當前值。

備註

如果你將屬性設定 AutoSizetrue,標籤的大小會被調整成符合標籤內容。 如果你在呼叫SetBoundsCore方法後設定AutoSize為 ,false標籤就會收到你在呼叫中指定的維度。

適用於