GdPicture.NET.14
GdPicture14.WPF Namespace / GdViewer Class / AfterPageRotation Event
Example





In This Topic
AfterPageRotation Event
In This Topic
This event is raised right after the currently displayed page of the document loaded in the GdViewer control has been rotated using the RotatePage method.

The event makes use of bubble routing strategy. Please check the corresponded GdViewer.AfterPageRotationEventArgs for given parameters.

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

The event handler receives an argument of type GdViewer.AfterPageRotationEventArgs containing data related to this event. The following GdViewer.AfterPageRotationEventArgs 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 AfterPageRotation event has been properly added.
            
'Define the event.
Sub GdViewer1_AfterPageRotation(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.AfterPageRotationEventArgs)
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated
//and the AfterPageRotation event has been properly added.
            
//Define the event.
void GdViewer1_AfterPageRotation(object sender, GdPicture14.WPF.GdViewer.AfterPageRotationEventArgs e)
{
    //Do your stuff here.
}
See Also