Back to Devexpress

IBaseViewController.RemoveDocument(BaseDocument) Method

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-ibaseviewcontroller-dot-removedocument-x28-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-basedocument-x29.md

latest2.7 KB
Original Source

IBaseViewController.RemoveDocument(BaseDocument) Method

Removes the specified document from the BaseView.Documents collection.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
bool RemoveDocument(
    BaseDocument document
)
vb
Function RemoveDocument(
    document As BaseDocument
) As Boolean

Parameters

NameTypeDescription
documentBaseDocument

A BaseDocument object to be removed.

|

Returns

TypeDescription
Boolean

true if the operation was successful; otherwise, false.

|

Remarks

Documents displayed within a View are stored in the BaseView.Documents collection. The RemoveDocument method removes a document from this collection, and therefore 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.

See Also

Documents

DocumentRemoved

Close(BaseDocument)

IBaseViewController Interface

IBaseViewController Members

DevExpress.XtraBars.Docking2010.Views Namespace