Skip to main content

BaseView.AddFloatDocument(Control) Method

Creates a new floating document that will display the specified control/form.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public BaseDocument AddFloatDocument(
    Control control


Name Type Description
control Control

A Control descendant to be displayed within the newly created document.


Type Description

A newly created BaseDocument object.


The control parameter specifies the contents for the newly created document. You can use any Control or Form descendant as the document’s contents. To subsequently access a document’s contents, use the BaseDocument.Control property.

When a document is added to a View, the BaseView.DocumentAdded event fires.

If a TabbedView is currently used, call the BaseView.AddDocument method to add a tabbed document instead of a floating document.

Floating documents within a TabbedView can be hosted either in individual containers, or in containers where other floating documents can be docked. See the BaseView.FloatingDocumentContainer property to learn more.

See Also