GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / Rotation Event
Example





In This Topic
Rotation Event (GdViewer)
In This Topic
This event is raised right after the global view of the viewer has been rotated using the RotateView method or the displayed page has been rotated using the Rotate method.

Please check the corresponded GdViewer.RotationEventHandler for given parameters.

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