RevertMerge Method (ToolStrip, ToolStrip)
Collapse the table of content
Expand the table of content

ToolStripManager.RevertMerge Method (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.

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

public static bool RevertMerge(
	ToolStrip targetToolStrip,
	ToolStrip sourceToolStrip


Type: System.Windows.Forms.ToolStrip

The name of the ToolStripItem for which to undo a merge operation.

Type: System.Windows.Forms.ToolStrip

The ToolStrip that was merged with the targetToolStrip.

Return Value

Type: System.Boolean

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

Exception Condition

The sourceToolStrip is null.

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

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft