ToolStripManager::RevertMerge Method (ToolStrip^)

 

Undoes a merging of two ToolStrip objects, returning the specified ToolStrip to its 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
)

Parameters

targetToolStrip
Type: System.Windows.Forms::ToolStrip^

The ToolStripItem for which to undo a merge operation.

Return Value

Type: System::Boolean

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

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

The following code example undoes the merging of menu items. This example is part of a larger example available in the ToolStripManager class overview.

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

.NET Framework
Available since 2.0
Return to top
Show: