Skip to main content
A newer version of this page is available. .

ITabbedViewController.Dock(Document, DocumentGroup) Method

Docks the specified document to the specified group.

Namespace: DevExpress.XtraBars.Docking2010.Views.Tabbed

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

bool Dock(
    Document document,
    DocumentGroup group
)

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.

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.

See Also