ToolBar::SetBoundsCore Method (Int32, Int32, Int32, Int32, BoundsSpecified)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the specified bounds of the ToolBar control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

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

Parameters

x
Type: System::Int32

The new Left property value of the control.

y
Type: System::Int32

The new Top property value of the control.

width
Type: System::Int32

The new Width property value of the control.

height
Type: System::Int32

Not used.

specified
Type: System.Windows.Forms::BoundsSpecified

A bitwise combination of the BoundsSpecified values.

The SetBoundsCore method ignores width if the Dock property is set to Left or Right and the AutoSize property is set to true. SetBoundsCore ignores height if the Dock property is set to Top or Bottom and the AutoSize property is set to true.

.NET Framework
Available since 1.1
Return to top
Show: