Example





In This Topic
GdPicture14 Namespace / GdViewer Class / BeforeRotation Event

BeforeRotation Event (GdViewer)

In This Topic
This event is raised just before the global view of the viewer is going to rotate using the RotateView method or the displayed page is going to rotate using the Rotate method.

Please check the corresponded GdViewer.BeforeRotationEventHandler for given parameters.

Syntax
'Declaration
 
Public Event BeforeRotation As GdViewer.BeforeRotationEventHandler
public event GdViewer.BeforeRotationEventHandler BeforeRotation
public event BeforeRotation: GdViewer.BeforeRotationEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.BeforeRotationEventHandler* BeforeRotation
public:
event GdViewer.BeforeRotationEventHandler^ BeforeRotation
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.BeforeRotation, AddressOf GdViewer1_BeforeRotation
            
'Define the event.
Sub GdViewer1_BeforeRotation(Rotation As RotateFlipType) Handles GdViewer1.BeforeRotation
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.BeforeRotation += GdViewer1_BeforeRotation;
            
//Define the event.
void GdViewer1_BeforeRotation(RotateFlipType Rotation)
{
    //Do your stuff here.
}
See Also