IBaseViewController.ResetLayout() Method

Resets the current DocumentManager's layout to default.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v20.1.dll


void ResetLayout()
Sub ResetLayout


End-users can modify a DocumentManager's layout at runtime. For instance, in TabbedView, new DocumentGroups can be created by dragging Documents. To reset a DocumentManager's layout to default, call the ResetLayout method.

Once you call the ResetLayout method, the TabbedView and NativeMdiView Views perform all layout modifications automatically. In WidgetView and WindowsUIView Views, calling this method does nothing but raising the BaseView.LayoutResetting and BaseView.LayoutReset events, which you need to handle and manually reset the layout.

To specify if a layout can be reset, use the BaseView.AllowResetLayout property.

End-users can reset layout at runtime via a BarDockingMenuItem's corresponding menu item (if the BaseView.AllowResetLayout property is not false):

DocumentManager - ResetLayout (disabled)

For WidgetView and WindowsUIView, that provide no such "Reset Window Layout" element at runtime, calling

See Also