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 值的位元組合。

備註

如果 Dock 屬性設定為 LeftRight ,且 屬性設定 true 為 , AutoSizeSetBoundsCore 方法會忽略寬度。 SetBoundsCore如果 Dock 屬性設定為 TopBottom ,且 屬性設定 true 為 ,則會 AutoSize 忽略高度。

適用於