System.Windows.Forms.ToolStripManager.RevertMerge Method

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

Syntax

public static bool RevertMerge (ToolStrip targetToolStrip, ToolStrip sourceToolStrip)

Parameters

targetToolStrip
The name of the System.Windows.Forms.ToolStripItem for which to undo a merge operation.
sourceToolStrip
The System.Windows.Forms.ToolStrip that was merged with the targetToolStrip.

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