ToolStripManager Class

 

Controls ToolStrip rendering and rafting, and the merging of MenuStrip, ToolStripDropDownMenu, and ToolStripMenuItem objects. This class cannot be inherited.

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

System::Object
  System.Windows.Forms::ToolStripManager

public ref class ToolStripManager sealed 

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticRenderer

Gets or sets the default painting styles for the form.

System_CAPS_pubpropertySystem_CAPS_staticRenderMode

Gets or sets the default theme for the form.

System_CAPS_pubpropertySystem_CAPS_staticVisualStylesEnabled

Gets or sets a value indicating whether a ToolStrip is rendered using visual style information called themes.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticFindToolStrip(String^)

Finds the specified ToolStrip or a type derived from ToolStrip.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticIsShortcutDefined(Keys)

Retrieves a value indicating whether the specified shortcut key is used by any of the ToolStrip controls of a form.

System_CAPS_pubmethodSystem_CAPS_staticIsValidShortcut(Keys)

Retrieves a value indicating whether a defined shortcut key is valid.

System_CAPS_pubmethodSystem_CAPS_staticLoadSettings(Form^)

Loads settings for the given Form using the full name of the Form as the settings key.

System_CAPS_pubmethodSystem_CAPS_staticLoadSettings(Form^, String^)

Loads settings for the specified Form using the specified settings key.

System_CAPS_pubmethodSystem_CAPS_staticMerge(ToolStrip^, String^)

Combines two ToolStrip objects of the same type.

System_CAPS_pubmethodSystem_CAPS_staticMerge(ToolStrip^, ToolStrip^)

Combines two ToolStrip objects of different types.

System_CAPS_pubmethodSystem_CAPS_staticRevertMerge(String^)

Undoes a merging of two ToolStrip objects, returning the ToolStrip with the specified name to its state before the merge and nullifying all previous merge operations.

System_CAPS_pubmethodSystem_CAPS_staticRevertMerge(ToolStrip^)

Undoes a merging of two ToolStrip objects, returning the specified ToolStrip to its state before the merge and nullifying all previous merge operations.

System_CAPS_pubmethodSystem_CAPS_staticRevertMerge(ToolStrip^, ToolStrip^)

Undoes a merging of two ToolStrip objects, returning both ToolStrip controls to their state before the merge and nullifying all previous merge operations.

System_CAPS_pubmethodSystem_CAPS_staticSaveSettings(Form^)

Saves settings for the given Form using the full name of the Form as the settings key.

System_CAPS_pubmethodSystem_CAPS_staticSaveSettings(Form^, String^)

Saves settings for the specified Form using the specified settings key.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventSystem_CAPS_staticRendererChanged

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.

No code example is currently available or this language may not be supported.

The following code example demonstrates a call to ToolStripManager and some of its members.

toolStrip1->RenderMode = 
    ToolStripRenderMode::ManagerRenderMode;
ToolStripManager::Renderer = gcnew RedTextRenderer;

.NET Framework
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.

Return to top
Show: