A newer version of this page is available. Switch to the current version.

LayoutController.Restore(BaseLayoutItem) Method

Restores the specified hidden item, adding it to the layout.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v19.1.dll


public bool Restore(
    BaseLayoutItem item
Public Function Restore(
    item As BaseLayoutItem
) As Boolean


Name Type Description
item BaseLayoutItem

A BaseLayoutItem object that represents a hidden item to be restored.


Type Description

A Boolean value that indicates that the item has been successfully restored.


The Restore method restores a hidden item, adding it to the layout. A hidden item cannot be restored if the BaseLayoutItem.AllowRestore option is disabled. After the item has been restored, the DockLayoutManager.LayoutItemRestored event fires.

All hidden items can be accessed via the LayoutController.HiddenItems collection.

In Customization Mode, an end-user can access hidden items via the Customization Window. It's possible to hide an item by right-clicking it, and selecting Hide item from the context menu. To restore a hidden item, right-click the item in the Customization Window and select Restore item.


See Also