System.Windows.Forms.ToolStrip Members

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

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

Public Constructors

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

Initializes a new instance of the System.Windows.Forms.ToolStrip class with the specified array of System.Windows.Forms.ToolStripItems.

Public Properties

override
AllowDropbool.

Gets or sets a value indicating whether drag-and-drop and item reordering are handled through events that you implement.

AllowItemReorderbool.

Gets or sets a value indicating whether drag-and-drop and item reordering are handled privately by the System.Windows.Forms.ToolStrip class.

AllowMergebool.

Gets or sets a value indicating whether multiple System.Windows.Forms.MenuStrip, System.Windows.Forms.ToolStripDropDownMenu, System.Windows.Forms.ToolStripMenuItem, and other types can be combined.

override
AnchorAnchorStyles.

Gets or sets the edges of the container to which a System.Windows.Forms.ToolStrip is bound and determines how a System.Windows.Forms.ToolStrip is resized with its parent.

override
AutoScrollbool.

This property is not relevant for this class.

AutoScrollMarginSystem.Drawing.Size.

This property is not relevant for this class.

AutoScrollMinSizeSystem.Drawing.Size.

This property is not relevant for this class.

AutoScrollPositionSystem.Drawing.Point.

This property is not relevant for this class.

override
AutoSizebool.

Gets or sets a value indicating whether the control is automatically resized to display its entire contents.

BackColorSystem.Drawing.Color.

Gets or sets the background color for the System.Windows.Forms.ToolStrip.

override
BindingContextBindingContext.

Gets or sets the binding context for the System.Windows.Forms.ToolStrip.

CanOverflowbool.

Gets or sets a value indicating whether items in the System.Windows.Forms.ToolStrip can be sent to an overflow menu.

CausesValidationbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStrip causes validation to be performed on any controls that require validation when it receives focus.

[read-only]
ControlsControl.ControlCollection.

This property is not relevant for this class.

override
CursorCursor.

Gets or sets the cursor that is displayed when the mouse pointer is over the System.Windows.Forms.ToolStrip.

DefaultDropDownDirectionToolStripDropDownDirection.

Gets or sets a value representing the default direction in which a System.Windows.Forms.ToolStripDropDown control is displayed relative to the System.Windows.Forms.ToolStrip.

[read-only]
override
DisplayRectangleSystem.Drawing.Rectangle.

Retrieves the current display rectangle.

override
DockDockStyle.

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

override
FontSystem.Drawing.Font.

Gets or sets the font used to display text in the control.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the System.Windows.Forms.ToolStrip.

[read-only]
GripDisplayStyleToolStripGripDisplayStyle.

Gets the orientation of the System.Windows.Forms.ToolStrip move handle.

GripMarginPadding.

Gets or sets the space around the System.Windows.Forms.ToolStrip move handle.

[read-only]
GripRectangleSystem.Drawing.Rectangle.

Gets the boundaries of the System.Windows.Forms.ToolStrip move handle.

GripStyleToolStripGripStyle.

Gets or sets whether the System.Windows.Forms.ToolStrip move handle is visible or hidden.

[read-only]
HasChildrenbool.

This property is not relevant for this class.

[read-only]
HorizontalScrollHScrollProperties.

This property is not relevant for this class.

ImageListImageList.

Gets or sets the image list that contains the image displayed on a System.Windows.Forms.ToolStrip item.

ImageScalingSizeSystem.Drawing.Size.

Gets or sets the size, in pixels, of an image used on a System.Windows.Forms.ToolStrip.

[read-only]
IsCurrentlyDraggingbool.

Gets a value indicating whether the user is currently moving the System.Windows.Forms.ToolStrip from one System.Windows.Forms.ToolStripContainer to another.

[read-only]
IsDropDownbool.

Gets a value indicating whether a System.Windows.Forms.ToolStrip is a System.Windows.Forms.ToolStripDropDown control.

[read-only]
ItemsToolStripItemCollection.

Gets all the items that belong to a System.Windows.Forms.ToolStrip.

[read-only]
override
LayoutEngineSystem.Windows.Forms.Layout.LayoutEngine.

Passes a reference to the cached Control.LayoutEngine returned by the layout engine interface.

LayoutSettingsLayoutSettings.

Gets or sets layout scheme characteristics.

LayoutStyleToolStripLayoutStyle.

Gets or sets a value indicating how the System.Windows.Forms.ToolStrip lays out the items collection.

[read-only]
OrientationOrientation.

Gets the orientation of the System.Windows.Forms.ToolStripPanel.

[read-only]
OverflowButtonToolStripOverflowButton.

Gets the System.Windows.Forms.ToolStripItem that is the overflow button for a System.Windows.Forms.ToolStrip with overflow enabled.

RendererToolStripRenderer.

Gets or sets a System.Windows.Forms.ToolStripRenderer used to customize the look and feel of a System.Windows.Forms.ToolStrip.

RenderModeToolStripRenderMode.

Gets or sets a value that indicates which visual styles will be applied to the System.Windows.Forms.ToolStrip.

ShowItemToolTipsbool.

Gets or sets a value indicating whether ToolTips are to be displayed on System.Windows.Forms.ToolStrip items.

Stretchbool.

Gets or sets a value indicating whether the System.Windows.Forms.ToolStrip stretches from end to end in the System.Windows.Forms.ToolStripContainer.

TabStopbool.

Gets or sets a value indicating whether the user can give the focus to an item in the System.Windows.Forms.ToolStrip using the TAB key.

TextDirectionToolStripTextDirection.

Gets or sets the direction in which to draw text on a System.Windows.Forms.ToolStrip.

[read-only]
VerticalScrollVScrollProperties.

This property is not relevant for this class.

Protected Properties

[read-only]
DefaultDockDockStyle.

Gets the docking location of the System.Windows.Forms.ToolStrip, indicating which borders are docked to the container.

[read-only]
DefaultGripMarginPadding.

Gets the default spacing, in pixels, between the sizing grip and the edges of the System.Windows.Forms.ToolStrip.

[read-only]
override
DefaultMarginPadding.

Gets the spacing, in pixels, between the System.Windows.Forms.ToolStrip and the System.Windows.Forms.ToolStripContainer.

[read-only]
override
DefaultPaddingPadding.

Gets the internal spacing, in pixels, of the contents of a System.Windows.Forms.ToolStrip.

[read-only]
DefaultShowItemToolTipsbool.

Gets a value indicating whether ToolTips are shown for the System.Windows.Forms.ToolStrip by default.

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

Gets the default size of the System.Windows.Forms.ToolStrip.

[read-only]
DisplayedItemsToolStripItemCollection.

Gets the subset of items that are currently displayed on the System.Windows.Forms.ToolStrip, including items that are automatically added into the System.Windows.Forms.ToolStrip.

[read-only]
MaxItemSizeSystem.Drawing.Size.

Gets the maximum height and width, in pixels, of the System.Windows.Forms.ToolStrip.

Public Methods

GetChildAtPoint(System.Drawing.Point) : Control

This method is not relevant for this class.

GetChildAtPoint(System.Drawing.Point, GetChildAtPointSkip) : Control

This method is not relevant for this class.

GetItemAt(System.Drawing.Point) : ToolStripItem

Returns the item located at the specified point in the client area of the System.Windows.Forms.ToolStrip.

GetItemAt(int, int) : ToolStripItem

Returns the item located at the specified x- and y-coordinates of the System.Windows.Forms.ToolStrip client area.

GetNextItem(ToolStripItem, ArrowDirection) : ToolStripItem

Retrieves the next System.Windows.Forms.ToolStripItem from the specified reference point and moving in the specified direction.

ResetMinimumSize()

This method is not relevant for this class.

SetAutoScrollMargin(int, int)

This method is not relevant for this class.

override
ToString() : string

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

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the System.Windows.Forms.ToolStrip item.

override
CreateControlsInstance() : Control.ControlCollection

Creates a new instance of the control collection for the control.

CreateDefaultItem(string, System.Drawing.Image, EventHandler) : ToolStripItem

Creates a default System.Windows.Forms.ToolStripItem with the specified text, image, and event handler on a new System.Windows.Forms.ToolStrip instance.

CreateLayoutSettings(ToolStripLayoutStyle) : LayoutSettings

Specifies the visual arrangement for the System.Windows.Forms.ToolStrip.

override
Dispose(bool)

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

override
IsInputChar(char) : bool

Determines whether a character is an input character that the item recognizes.

override
IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnBeginDrag(EventArgs)

Raises the ToolStrip.BeginDrag event.

override
OnDockChanged(EventArgs)

Raises the Control.DockChanged event.

override
OnEnabledChanged(EventArgs)

Raises the Control.Enabled event.

OnEndDrag(EventArgs)

Raises the ToolStrip.EndDrag event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

override
OnInvalidated(InvalidateEventArgs)

Raises the Control.Invalidated event.

OnItemAdded(ToolStripItemEventArgs)

Raises the ToolStrip.ItemAdded event.

OnItemClicked(ToolStripItemClickedEventArgs)

Raises the ToolStrip.ItemClicked event.

OnItemRemoved(ToolStripItemEventArgs)

Raises the ToolStrip.ItemRemoved event.

override
OnLayout(LayoutEventArgs)

Raises the Control.Layout event.

OnLayoutCompleted(EventArgs)

Raises the ToolStrip.LayoutCompleted event.

OnLayoutStyleChanged(EventArgs)

Raises the ToolStrip.LayoutStyleChanged event.

override
OnLeave(EventArgs)

Raises the Control.Leave event.

override
OnLostFocus(EventArgs)

Raises the Control.LostFocus event.

override
OnMouseCaptureChanged(EventArgs)

Raises the Control.MouseCaptureChanged event.

override
OnMouseDown(MouseEventArgs)

Raises the Control.MouseDown event.

override
OnMouseLeave(EventArgs)

Raises the Control.MouseLeave event.

override
OnMouseMove(MouseEventArgs)

Raises the Control.MouseMove event.

override
OnMouseUp(MouseEventArgs)

Raises the Control.MouseUp event.

override
OnPaint(PaintEventArgs)

Raises the Control.Paint event.

override
OnPaintBackground(PaintEventArgs)

Raises the Control.Paint event for the System.Windows.Forms.ToolStrip background.

OnPaintGrip(PaintEventArgs)

Raises the ToolStrip.PaintGrip event.

OnRendererChanged(EventArgs)

Raises the ToolStrip.RendererChanged event.

override
OnRightToLeftChanged(EventArgs)

Raises the Control.RightToLeftChanged event.

override
OnScroll(ScrollEventArgs)

Raises the ScrollableControl.Scroll event.

override
OnTabStopChanged(EventArgs)

Raises the Control.TabStopChanged event.

override
OnVisibleChanged(EventArgs)

Raises the ToolStripItem.VisibleChanged event.

override
ProcessCmdKey(ref Message, Keys) : bool
Documentation for this section has not yet been entered.
override
ProcessDialogKey(Keys) : bool

Processes a dialog box key.

override
ProcessMnemonic(char) : bool

Processes a mnemonic character.

RestoreFocus()

Controls the return location of the focus.

override
Select(bool, bool)

Activates a child control. Optionally specifies the direction in the tab order to select the control from.

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

Performs the work of setting the specified bounds of this control.

SetDisplayedItems()

Resets the collection of displayed and overflow items after a layout is done.

SetItemLocation(ToolStripItem, System.Drawing.Point)

Anchors a System.Windows.Forms.ToolStripItem to a particular place on a System.Windows.Forms.ToolStrip.

static
SetItemParent(ToolStripItem, ToolStrip)

Enables you to change the parent System.Windows.Forms.ToolStrip of a System.Windows.Forms.ToolStripItem.

override
SetVisibleCore(bool)

Retrieves a value that sets the System.Windows.Forms.ToolStripItem to the specified visibility state.

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

Public Events

AutoSizeChanged

Occurs when the ToolStrip.AutoSize property has changed.

BeginDrag

Occurs when the user begins to drag the System.Windows.Forms.ToolStrip control.

CausesValidationChanged

Occurs when the ToolStrip.CausesValidation property changes.

ControlAdded

This event is not relevant for this class.

ControlRemoved

This event is not relevant for this class.

CursorChanged

Occurs when the value of the System.Windows.Forms.Cursor property changes.

EndDrag

Occurs when the user stops dragging the System.Windows.Forms.ToolStrip control.

ForeColorChanged

Occurs when the value of the ToolStrip.ForeColor property changes.

ItemAdded

Occurs when a new System.Windows.Forms.ToolStripItem is added to the System.Windows.Forms.ToolStripItemCollection.

ItemClicked

Occurs when the System.Windows.Forms.ToolStripItem is clicked.

ItemRemoved

Occurs when a System.Windows.Forms.ToolStripItem is removed from the System.Windows.Forms.ToolStripItemCollection.

LayoutCompleted

Occurs when the layout of the System.Windows.Forms.ToolStrip is complete.

LayoutStyleChanged

Occurs when the value of the ToolStrip.LayoutStyle property changes.

PaintGrip

Occurs when the System.Windows.Forms.ToolStrip move handle is painted.

RendererChanged

Occurs when the value of the ToolStrip.Renderer property changes.