共用方式為


ToolBar.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 方法

定義

設定控制的指定界限 ToolBar

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

備註

SetBoundsCoreDock將性質設Left為或Right,且AutoSize將性質設為 true,則該方法忽略寬度。 SetBoundsCoreDock 屬性設為 TopBottomAutoSize 且屬性設為 true,則忽略高度。

適用於