Back to Devexpress

IBaseViewController.Dock(BaseDocument) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-ibaseviewcontroller-dot-dock-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-x29.md

latest3.7 KB
Original Source

IBaseViewController.Dock(BaseDocument) Method

Docks the specified document to a View.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool Dock(
    BaseDocument document
)
vb
Function Dock(
    document As BaseDocument
) As Boolean

Parameters

NameTypeDescription
documentBaseDocument

A BaseDocument object to be docked to a View.

|

Returns

TypeDescription
Boolean

true if the operation was a success; otherwise, false.

|

Remarks

The Dock method docks a document, while the IBaseViewController.Float method makes it floating.

By default, documents within a NativeMdiView can be dragged only within the View’s bounds. These documents are considered “docked”. When you make a document floating within a NativeMdiView, it can be dragged outside the View. To “dock” a document back to a NativeMdiView, so it can be dragged only within the View’s bounds, call the IBaseViewController.Dock method.

See Also

IBaseDocumentDefaultProperties.AllowFloat

IBaseDocumentProperties.AllowFloat

IBaseDocumentDefaultProperties.AllowDock

IBaseDocumentProperties.AllowDock

Dock

Float

FloatDocuments

IDocumentGroupDefaultProperties.MaxDocuments

IDocumentGroupProperties.MaxDocuments

BeginDocking

EndDocking

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace