DocumentManager.CreateView(ViewType) Method

Creates a BaseView object for the current DocumentManager.

Namespace: DevExpress.XtraBars.Docking2010

Assembly: DevExpress.XtraBars.v21.1.dll

Declaration

public virtual BaseView CreateView(
    ViewType type
)

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.

See Also