Sets the specified bounds of the System.Windows.Forms.ToolBar control.
- x
- The new Left property value of the control.
- y
- The new Top property value of the control.
- width
- The new Width property value of the control.
- height
- Not used.
- specified
- A bitwise combination of the System.Windows.Forms.BoundsSpecified values.
The ToolBar.SetBoundsCore(int, int, int, int, BoundsSpecified) method ignores width if the ToolBar.Dock property is set to DockStyle.Left or DockStyle.Right and the ToolBar.AutoSize property is set to true. ToolBar.SetBoundsCore(int, int, int, int, BoundsSpecified) ignores height if the ToolBar.Dock property is set to DockStyle.Top or DockStyle.Bottom and the ToolBar.AutoSize property is set to true.