Label.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定標籤的指定界限。
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)
參數
- specified
- BoundsSpecified
這是數值的位元組合 BoundsSpecified 。 對於未指定的參數,將使用當前值。
備註
如果你將屬性設定 AutoSize 為 true,標籤的大小會被調整成符合標籤內容。 如果你在呼叫SetBoundsCore方法後設定AutoSize為 ,false標籤就會收到你在呼叫中指定的維度。