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

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

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