Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

bool Dock(
    DockPanel dockPanel
)

#Parameters

Name Type Description
dockPanel DockPanel

A DockPanel object to be docked to a View.

#Returns

Type Description
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