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





In This Topic
AfterZoomChange Event (GdViewer)
In This Topic
This event is raised after the zoom level has been successfully changed.

Please check the corresponded GdViewer.AfterZoomChangeEventHandler for more details.

Syntax
'Declaration
 
Public Event AfterZoomChange As GdViewer.AfterZoomChangeEventHandler
public event GdViewer.AfterZoomChangeEventHandler AfterZoomChange
public event AfterZoomChange: GdViewer.AfterZoomChangeEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.AfterZoomChangeEventHandler* AfterZoomChange
public:
event GdViewer.AfterZoomChangeEventHandler^ AfterZoomChange
Remarks
Just to inform you that this event always occurs when the viewer control has been refreshed due to any changing of the zoom level or the zoom mode.
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.AfterZoomChange, AddressOf GdViewer1_AfterZoomChange
            
'Define the event.
Sub GdViewer1_AfterZoomChange() Handles GdViewer1.AfterZoomChange
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.AfterZoomChange += GdViewer1_AfterZoomChange;
            
//Define the event.
void GdViewer1_AfterZoomChange()
{
    //Do your stuff here.
}
See Also