DocumentManager.CreateView(ViewType) Method
Creates a BaseView object for the current DocumentManager.
Namespace: DevExpress.XtraBars.Docking2010
Assembly: DevExpress.XtraBars.v24.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
type | ViewType | The ViewType enumerator value specifying the type of view created. |
Returns
Type | Description |
---|---|
BaseView | The BaseView object created. |
Remarks
A DocumentManager component has multiple Views to present documents. The current DocumentManager‘s view is the one assigned to the DocumentManager.View property. All DocumentManager‘s views are accessible via the DocumentManager.ViewCollection property.
The CreateView method creates a new view, whose type is specified via the type parameter. The newly created view is placed neither to the DocumentManager.ViewCollection nor applied to the parent DocumentManager as the active view. Use the method’s return value to perform any of these operations manually.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateView(ViewType) 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.