Export (0) Print
Expand All

ToolStripManager Class

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

System.Object
  System.Windows.Forms.ToolStripManager

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

[<Sealed>]
type ToolStripManager =  class end

The ToolStripManager type exposes the following members.

  NameDescription
Public propertyStatic memberRendererGets or sets the default painting styles for the form.
Public propertyStatic memberRenderModeGets or sets the default theme for the form.
Public propertyStatic memberVisualStylesEnabledGets or sets a value indicating whether a ToolStrip is rendered using visual style information called themes.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodStatic memberFindToolStripFinds the specified ToolStrip or a type derived from ToolStrip.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsShortcutDefinedRetrieves a value indicating whether the specified shortcut key is used by any of the ToolStrip controls of a form.
Public methodStatic memberIsValidShortcutRetrieves a value indicating whether a defined shortcut key is valid.
Public methodStatic memberLoadSettings(Form)Loads settings for the given Form using the full name of the Form as the settings key.
Public methodStatic memberLoadSettings(Form, String)Loads settings for the specified Form using the specified settings key.
Public methodStatic memberMerge(ToolStrip, String)Combines two ToolStrip objects of the same type.
Public methodStatic memberMerge(ToolStrip, ToolStrip)Combines two ToolStrip objects of different types.
Public methodStatic memberRevertMerge(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.
Public methodStatic memberRevertMerge(ToolStrip)Undoes a merging of two ToolStrip objects, returning the specified ToolStrip to its state before the merge and nullifying all previous merge operations.
Public methodStatic memberRevertMerge(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.
Public methodStatic memberSaveSettings(Form)Saves settings for the given Form using the full name of the Form as the settings key.
Public methodStatic memberSaveSettings(Form, String)Saves settings for the specified Form using the specified settings key.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public eventStatic memberRendererChangedOccurs when the value of the Renderer property changes.
Top

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.

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

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft