ToolBar.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置控件的 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 。
注解
SetBoundsCore如果Dock属性设置为Left或Right属性设置为 true,则AutoSize该方法将忽略宽度。
SetBoundsCore如果属性Dock设置为Top或属性设置为 true,则BottomAutoSize忽略高度。