'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.
Property | Description |
---|---|
Handled | (Inherited from System.Windows.RoutedEventArgs) |
OriginalSource | (Inherited from System.Windows.RoutedEventArgs) |
RoutedEvent | (Inherited from System.Windows.RoutedEventArgs) |
Source | (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