Skip to main content
A newer version of this page is available. .

IBaseViewController.ResetLayout() Method

Resets the current DocumentManager‘s layout to default.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

void ResetLayout()

Remarks

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResetLayout() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also