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





In This Topic
AfterDocumentChange Event (GdViewer)
In This Topic
This event is raised right after the new document has been successfully loaded and displayed in the GdViewer control using one of the DisplayFrom... methods.

Please check the corresponded GdViewer.AfterDocumentChangeEventHandler for more details.

Syntax
'Declaration
 
Public Event AfterDocumentChange As GdViewer.AfterDocumentChangeEventHandler
public event GdViewer.AfterDocumentChangeEventHandler AfterDocumentChange
public event AfterDocumentChange: GdViewer.AfterDocumentChangeEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.AfterDocumentChangeEventHandler* AfterDocumentChange
public:
event GdViewer.AfterDocumentChangeEventHandler^ AfterDocumentChange
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.AfterDocumentChange, AddressOf GdViewer1_AfterDocumentChange
            
'Define the event.
Sub GdViewer1_AfterDocumentChange() Handles GdViewer1.AfterDocumentChange
    'The document has been successfully loaded and displayed.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.AfterDocumentChange += GdViewer1_AfterDocumentChange;
            
//Define the event.
void GdViewer1_AfterDocumentChange()
{
    //The document has been successfully loaded and displayed.
}
See Also