Reference Guide
GdPicture14 Namespace / GdViewer Class / ScrollViewer Event
Example





In This Topic
    ScrollViewer Event (GdViewer)
    In This Topic
    This event is raised when the user scrolls through the GdViewer control area using the mouse move or when they scroll using the vertical or the horizontal scrollbars directly.

    Please check the corresponded GdViewer.ScrollViewerEventHandler for more details.

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