ToolStripManager Class
Controls ToolStrip rendering and rafting, and the merging of MenuStrip, ToolStripDropDownMenu, and ToolStripMenuItem objects. This class cannot be inherited.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Renderer | Gets or sets the default painting styles for the form. |
![]() ![]() | RenderMode | Gets or sets the default theme for the form. |
![]() ![]() | VisualStylesEnabled | Gets or sets a value indicating whether a ToolStrip is rendered using visual style information called themes. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() ![]() | FindToolStrip(String^) | |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | IsShortcutDefined(Keys) | Retrieves a value indicating whether the specified shortcut key is used by any of the ToolStrip controls of a form. |
![]() ![]() | IsValidShortcut(Keys) | Retrieves a value indicating whether a defined shortcut key is valid. |
![]() ![]() | LoadSettings(Form^) | |
![]() ![]() | LoadSettings(Form^, String^) | Loads settings for the specified Form using the specified settings key. |
![]() ![]() | Merge(ToolStrip^, String^) | Combines two ToolStrip objects of the same type. |
![]() ![]() | Merge(ToolStrip^, ToolStrip^) | Combines two ToolStrip objects of different types. |
![]() ![]() | RevertMerge(String^) | |
![]() ![]() | RevertMerge(ToolStrip^) | |
![]() ![]() | RevertMerge(ToolStrip^, ToolStrip^) | |
![]() ![]() | SaveSettings(Form^) | |
![]() ![]() | SaveSettings(Form^, String^) | Saves settings for the specified Form using the specified settings key. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | RendererChanged | Occurs when the value of the Renderer property changes. |
ToolStripManager supports ToolStrip-related tasks for entire applications, such as merging, settings, and renderer options. The overloaded Merge method combines ToolStrip controls with each other, and the overloaded RevertMerge method undoes a merge operation.
Use the ToolStripRenderer class with the ToolStripManager class to gain even more control and customizability over painting and layout style.
The following code example demonstrates all the typical scenarios of menu item merging.
The following code example demonstrates a call to ToolStripManager and some of its members.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
ToolStripRenderer
ToolStripProfessionalRenderer
ToolStripContainer
System.Windows.Forms::MergeAction
ToolStripItem::MergeIndex
ToolStripItem::MergeAction
AllowMerge
System.Windows.Forms Namespace
How to: Customize Colors in ToolStrip Applications
How to: Set the ToolStrip Renderer at Run Time
How to: Set the ToolStrip Renderer for an Application



