Plank.Items.DockItemProvider.replace_item – plank Reference Manual
replace_item
Description:
public
virtual
void
replace_item
(
DockItem
new_item,
DockItem
old_item)
Replace an item with another item.
Parameters:
new_item
the new item
old_item
the item to be replaced