LayoutController.Restore(BaseLayoutItem) Method

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

Namespace: DevExpress.Xpf.Docking

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

Declaration

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

Parameters

Name Type Description
item BaseLayoutItem

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

Returns

Type Description
Boolean

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

Remarks

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.

Implements

DevExpress.Xpf.Docking.ILayoutController.Restore(BaseLayoutItem)
See Also