GdPicture.NET Reference Guide
AfterDocumentChange Event (GdViewer)
Example 





GdPicture14.WPF Namespace > GdViewer Class : AfterDocumentChange Event
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.

The event makes use of bubble routing strategy. Please check the corresponded GdViewer.AfterDocumentChangeEventArgs for more details.

Syntax
'Declaration
 
Public Event AfterDocumentChange As GdViewer.AfterDocumentChangeHandler
public event GdViewer.AfterDocumentChangeHandler AfterDocumentChange
public event AfterDocumentChange: GdViewer.AfterDocumentChangeHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.AfterDocumentChangeHandler* AfterDocumentChange
public:
event GdViewer.AfterDocumentChangeHandler^ AfterDocumentChange
Event Data

The event handler receives an argument of type GdViewer.AfterDocumentChangeEventArgs containing data related to this event. The following GdViewer.AfterDocumentChangeEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated
'and the AfterDocumentChange event has been properly added.
            
'Define the event.
Sub GdViewer1_AfterDocumentChange(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.AfterDocumentChangeEventArgs)
    'The document has been successfully loaded and displayed.
End Sub
//We assume that the GdViewer1 control has been properly integrated
//and the AfterDocumentChange event has been properly added.
            
//Define the event.
void GdViewer1_AfterDocumentChange(object sender, GdPicture14.WPF.GdViewer.AfterDocumentChangeEventArgs e)
{
    //The document has been successfully loaded and displayed.
}
See Also