windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-baseview-9991a818.md
Fires after a document has been closed.
Namespace : DevExpress.XtraBars.Docking2010.Views
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public event DocumentEventHandler DocumentClosed
Public Event DocumentClosed As DocumentEventHandler
The DocumentClosed event's data class is DocumentEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Document | Points to the document related to the current event. |
When a document is closed, it is destroyed.
A document can be closed by calling the IBaseViewController.Close method, accessible via the BaseView.Controller object. An end-user can close a document by clicking the close (‘x’) button. To prevent a document from being closed or perform additional actions when a document is being closed, handle the BaseView.DocumentClosing event.
See Also
IBaseDocumentDefaultProperties.AllowClose