'Declaration Public Event DocumentClosing As EventHandler(Of DocumentClosingEventArgs)
'Usage Dim instance As DockingManager Dim handler As EventHandler(Of DocumentClosingEventArgs) AddHandler instance.DocumentClosing, handler
public event EventHandler<DocumentClosingEventArgs> DocumentClosing
Event Data
The event handler receives an argument of type DocumentClosingEventArgs containing data related to this event. The following DocumentClosingEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
Document | Gets the document that is about to be closed. |
Remarks
Subscribers have the opportuniy to cancel the operation.
Requirements
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also