ITabbedViewController.Dock(Document, DocumentGroup) Method
Docks the specified document to the specified group.
Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed
Assembly: DevExpress.XtraBars.v20.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
document | Document | A Document object to be docked. |
group | DocumentGroup | A DocumentGroup object where the document should be docked. |
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Dock(Document, DocumentGroup) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.