System.Windows.Forms.ToolBar Members

The members of System.Windows.Forms.ToolBar are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.ToolBar class.

Public Properties

AppearanceToolBarAppearance.

Gets or set the value that determines the appearance of a toolbar control and its buttons.

override
AutoSizebool.

Gets or sets a value indicating whether the toolbar adjusts its size automatically, based on the size of the buttons and the dock style.

override
BackColorSystem.Drawing.Color.

Gets or sets the background color.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image.

override
BackgroundImageLayoutImageLayout.

Gets or sets the layout for background image.

BorderStyleBorderStyle.

Gets or sets the border style of the toolbar control.

[read-only]
ButtonsToolBar.ToolBarButtonCollection.

Gets the collection of System.Windows.Forms.ToolBarButton controls assigned to the toolbar control.

ButtonSizeSystem.Drawing.Size.

Gets or sets the size of the buttons on the toolbar control.

Dividerbool.

Gets or sets a value indicating whether the toolbar displays a divider.

override
DockDockStyle.

Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

DropDownArrowsbool.

Gets or sets a value indicating whether drop-down buttons on a toolbar display down arrows.

override
ForeColorSystem.Drawing.Color.

Gets or sets the forecolor .

ImageListImageList.

Gets or sets the collection of images available to the toolbar button controls.

[read-only]
ImageSizeSystem.Drawing.Size.

Gets the size of the images in the image list assigned to the toolbar.

ImeModeImeMode.

This member is not meaningful for this control.

override
RightToLeftRightToLeft.

This member is not meaningful for this control.

ShowToolTipsbool.

Gets or sets a value indicating whether the toolbar displays a ToolTip for each button.

TabStopbool.

This property is not meaningful for this control.

override
Textstring.

Gets or sets the text for the toolbar.

TextAlignToolBarTextAlign.

Gets or sets the alignment of text in relation to each image displayed on the toolbar button controls.

Wrappablebool.

Gets or sets a value indicating whether the toolbar buttons wrap to the next line if the toolbar becomes too small to display all the buttons on the same line.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Gets the required creation parameters when the control handle is created.

[read-only]
override
DefaultImeModeImeMode.

Gets the default Input Method Editor (IME) mode supported by this control.

[read-only]
override
DefaultSizeSystem.Drawing.Size.

Gets the default size of the control.

override
DoubleBufferedbool.

This member is not meaningful for this control.

Public Methods

override
ToString() : string

Returns a string that represents the System.Windows.Forms.ToolBar control.

Protected Methods

override
CreateHandle()

Creates a handle for the control.

override
Dispose(bool)

Releases the unmanaged resources used by the System.Windows.Forms.ToolBar and optionally releases the managed resources.

OnButtonClick(ToolBarButtonClickEventArgs)

Raises the ToolBar.ButtonClick event.

OnButtonDropDown(ToolBarButtonClickEventArgs)

Raises the ToolBar.ButtonDropDown event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnResize(EventArgs)

Raises the Control.Resize event.

override
ScaleControl(System.Drawing.SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

override
ScaleCore(float, float)

This method is not relevant for this class.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)

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

override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

AutoSizeChanged

Occurs when the value of the ToolBar.AutoSize property has changed.

BackColorChanged

Occurs when the ToolBar.BackColor property changes.

BackgroundImageChanged

Occurs when the ToolBar.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the ToolBar.BackgroundImageLayout property changes.

ButtonClick

Occurs when a System.Windows.Forms.ToolBarButton on the System.Windows.Forms.ToolBar is clicked.

ButtonDropDown

Occurs when a drop-down style System.Windows.Forms.ToolBarButton or its down arrow is clicked.

ForeColorChanged

Occurs when the ToolBar.ForeColor property changes.

ImeModeChanged

Occurs when the ToolBar.ImeMode property changes.

Paint

This member is not meaningful for this control.

RightToLeftChanged

Occurs when the ToolBar.RightToLeft property changes.

TextChanged

Occurs when the ToolBar.Text property changes.