Back to Devexpress

BaseView.AddFloatingDocumentsHost(Control) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-dot-addfloatingdocumentshost-x28-system-dot-windows-dot-forms-dot-control-x29.md

latest2.7 KB
Original Source

BaseView.AddFloatingDocumentsHost(Control) Method

Creates a documents host window that contains a newly created document wrapping the specified control. This method is in effect in the DocumentsHost mode.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool AddFloatingDocumentsHost(
    Control control
)
vb
Public Function AddFloatingDocumentsHost(
    control As Control
) As Boolean

Parameters

NameTypeDescription
controlControl

A Control that should be wrapped by the newly created document residing in the created documents host window.

|

Returns

TypeDescription
Boolean

true if a documents host window is successfully created; otherwise, false.

|

Remarks

This method is in effect if the BaseView.FloatingDocumentContainer property is set to DocumentsHost.

The AddFloatingDocumentsHost method creates the BaseDocument object that wraps the specified control. This document resides in the newly created documents host window.

To create a single floating document which does not reside in a documents host window, use the AddFloatDocument method.

See Also

FloatingDocumentContainer

RegisterDocumentsHostWindow

CustomDocumentsHostWindow

BaseView Class

BaseView Members

DevExpress.XtraBars.Docking2010.Views Namespace