System.Windows.Forms.ToolBar.SetBoundsCore Method

Sets the specified bounds of the System.Windows.Forms.ToolBar control.

Syntax

protected override void SetBoundsCore (int x, int y, int width, int height, BoundsSpecified specified)

Parameters

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.

Remarks

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0