Reference Guide
GdPicture14 Namespace / GdViewer Class / BeforeZoomChange Event

In This Topic
    BeforeZoomChange Event (GdViewer)
    In This Topic
    This event is raised before the zoom level is going to change.

    Please check the corresponded GdViewer.BeforeZoomChangeEventHandler for more details.

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