Back to Devexpress

ITabbedViewController.Dock(DockPanel, DocumentGroup) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-tabbed-dot-itabbedviewcontroller-dot-dock-x28-devexpress-dot-xtrabars-dot-docking-dot-dockpanel-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-tabbed-dot-documentgroup-x29.md

latest3.2 KB
Original Source

ITabbedViewController.Dock(DockPanel, DocumentGroup) Method

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

Namespace : DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool Dock(
    DockPanel dockPanel,
    DocumentGroup group
)
vb
Function Dock(
    dockPanel As DockPanel,
    group As DocumentGroup
) As Boolean

Parameters

NameTypeDescription
dockPanelDockPanel

A DockPanel object to be docked.

| | group | DocumentGroup |

A DocumentGroup object where the dock panel should be docked.

|

Returns

TypeDescription
Boolean

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

|

Remarks

You can limit the number of simultaneously displayed items (documents and dock panels) within a group via the IDocumentGroupDefaultProperties.MaxDocuments/IDocumentGroupProperties.MaxDocuments properties. If a group is displaying the maximum number of items ( MaxDocuments ), and you try to dock a new item to this group via the Dock method, the operation will not be successful.

See Also

DockAsMdiDocument

IDocumentGroupDefaultProperties.MaxDocuments

IDocumentGroupProperties.MaxDocuments

BeginDocking

EndDocking

ITabbedViewController Interface

ITabbedViewController Members

DevExpress.XtraBars.Docking2010.Views.Tabbed Namespace