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

BaseView.RemoveDocument(Control) Method

Removes a document whose BaseDocument.Control property’s value matches the specified control object.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public void RemoveDocument(
    Control control
)

#Parameters

Name Type Description
control Control

A control used to identify the target document.

#Remarks

Documents displayed within a View are stored in the BaseView.Documents collection. The RemoveDocument method removes a document from this collection, and so from the current View. When a document is removed, it is hidden from the View. It is not destroyed. The BaseView.DocumentRemoved event fires after a document has been removed.

To destroy a document, use the IBaseViewController.Close method, accessible via the View’s BaseView.Controller object.

See Also