Back to Devexpress

BaseView.DocumentRemoved Event

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-497e1b92.md

latest2.6 KB
Original Source

BaseView.DocumentRemoved Event

Fires when a document is removed from the BaseView.Documents collection.

Namespace : DevExpress.XtraBars.Docking2010.Views

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public event DocumentEventHandler DocumentRemoved
vb
Public Event DocumentRemoved As DocumentEventHandler

Event Data

The DocumentRemoved event's data class is DocumentEventArgs. The following properties provide information specific to this event:

PropertyDescription
DocumentPoints to the document related to the current event.

Remarks

The BaseView.Documents collection stores all documents displayed within the current View. You can remove a document from the BaseView.Documents collection, and therefore from the View, by calling the BaseView.RemoveDocument method.

When closing a document, it is removed from a View first. So, the DocumentRemoved event fires before the BaseView.DocumentClosed event.

To remove an MDI child form from a View, you can also set the form’s MdiParent property to null.

See Also

RemoveDocument(Control)

Documents

DocumentClosed

BaseView Class

BaseView Members

DevExpress.XtraBars.Docking2010.Views Namespace