The event handler receives an argument of type DocumentEventArgs containing data related to this event.
The following
DocumentEventArgs properties provide information specific to this event.
Property |
Description |
Document |
Points to the document related to the current event.
|
The Documents collection stores all documents displayed within the current View.
You can remove a document from the Documents collection, and therefore from the View, by calling the RemoveDocument method.
When closing a document, it is removed from a View first. So, the DocumentRemoved event fires before the DocumentClosed event.
To remove an MDI child form from a View, you can also set the form's
MdiParent property to
null.