ITabbedViewController.Dock(Document, DocumentGroup) Method
Docks the specified document to the specified group.
Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
bool Dock(
Document document,
DocumentGroup group
)
#Parameters
Name | Type | Description |
---|---|---|
document | Document | A Document object to be docked. |
group | Document |
A Document |
#Returns
Type | Description |
---|---|
Boolean | true if the operation was a success; otherwise, false. |
#Remarks
You can limit the number of simultaneously displayed documents within a group via the IDocumentGroupDefaultProperties.MaxDocuments/IDocumentGroupProperties.MaxDocuments properties. If a group is displaying the maximum number of documents (MaxDocuments), and you try to dock a new document to this group via the Dock method, the operation will not be successful.