unparent


Description:

public bool unparent ()

Unparents the menu item this.

If this doesn't have a parent, then this call will fail. The menuitem will be unparented automatically when using the usual methods to delete a child menuitem, so this function should not normally be called directly

Parameters:

this

The Menuitem to unparent

Returns:

Whether the menu item was unparented successfully