System.Windows.Forms.ToolStripManager.RevertMerge Method

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

Syntax

public static bool RevertMerge (ToolStrip targetToolStrip)

Parameters

targetToolStrip
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