Skip to main content

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.1.dll

NuGet Package: DevExpress.Win.Navigation


public void RemoveDocument(
    Control control


Name Type Description
control Control

A control used to identify the target document.


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