System.Windows.Forms.ToolStripManager.RevertMerge Method

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

Syntax

public static bool RevertMerge (string targetName)

Parameters

targetName
The name of the System.Windows.Forms.ToolStripItem for which to undo a merge operation.

Returns

true if the undoing of the merge is successful; otherwise, false.

Remarks

The ToolStrip.AllowMerge property must be set to true for both System.Windows.Forms.ToolStrip objects, or this method returns false.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0