GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / DocumentClosed Event
Example





In This Topic
DocumentClosed Event (GdViewer)
In This Topic
This event is raised when the currently displayed document has been successfully closed in the GdViewer control.

Please check the corresponded GdViewer.DocumentClosedEventHandler for more details.

Syntax
'Declaration
 
Public Event DocumentClosed As GdViewer.DocumentClosedEventHandler
public event GdViewer.DocumentClosedEventHandler DocumentClosed
public event DocumentClosed: GdViewer.DocumentClosedEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.DocumentClosedEventHandler* DocumentClosed
public:
event GdViewer.DocumentClosedEventHandler^ DocumentClosed
Example
How to add this event to your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
            
'Add the event.
AddHandler GdViewer1.DocumentClosed, AddressOf GdViewer1_DocumentClosed
            
'Define the event.
Sub GdViewer1_DocumentClosed() Handles GdViewer1.DocumentClosed
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.DocumentClosed += GdViewer1_DocumentClosed;
            
//Define the event.
void GdViewer1_DocumentClosed()
{
    //Do your stuff here.
}
See Also