GdPicture.NET Reference Guide
BeforePageRotation Event
Example 





GdPicture14.WPF Namespace > GdViewer Class : BeforePageRotation Event
This event is raised just before the currently displayed page of the document loaded in the GdViewer control is going to rotate using the RotatePage method.

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

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

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