Back to Devexpress

IBaseViewController.Dock(DockPanel) Method

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

latest2.6 KB
Original Source

IBaseViewController.Dock(DockPanel) Method

Docks the specified DockPanel to a View, displaying the panel as a tab.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool Dock(
    DockPanel dockPanel
)
vb
Function Dock(
    dockPanel As DockPanel
) As Boolean

Parameters

NameTypeDescription
dockPanelDockPanel

A DockPanel object to be docked to a View.

|

Returns

TypeDescription
Boolean

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

|

Remarks

DockPanel objects can be docked only to TabbedViews. They cannot be docked to NativeMdiViews.

The Dock method is equivalent to the DockPanel.DockAsMdiDocument method.

See Also

DockAsMdiDocument

IDocumentGroupDefaultProperties.MaxDocuments

IDocumentGroupProperties.MaxDocuments

BeginDocking

EndDocking

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace