Reference Guide
GdPicture14.WPF Namespace / GdViewer Class / PageDisplayed Event
Example





In This Topic
    PageDisplayed Event (GdViewer)
    In This Topic
    This event is raised after the current page of the document loaded in the GdViewer control has been successfully displayed.

    The event makes use of bubble routing strategy. Please check the corresponded GdViewer.PageDisplayedEventArgs for more details.

    Syntax
    'Declaration
     
    
    Public Event PageDisplayed As GdViewer.PageDisplayedHandler
    public event GdViewer.PageDisplayedHandler PageDisplayed
    public event PageDisplayed: GdViewer.PageDisplayedHandler; 
    In JScript, you can handle the events defined by another class, but you cannot define your own.
    public: __event GdViewer.PageDisplayedHandler* PageDisplayed
    public:
    event GdViewer.PageDisplayedHandler^ PageDisplayed
    Event Data

    The event handler receives an argument of type GdViewer.PageDisplayedEventArgs containing data related to this event. The following GdViewer.PageDisplayedEventArgs properties provide information specific to this event.

    PropertyDescription
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    Example
    How to utilize this event in your GdViewer control.
    'We assume that the GdViewer1 control has been properly integrated
    'and the PageDisplayed event has been properly added.
                
    'Define the event.
    Sub GdViewer1_PageDisplayed(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.PageDisplayedEventArgs)
        MessageBox.Show("The displayed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageDisplayed")
    End Sub
    //We assume that the GdViewer1 control has been properly integrated
    //and the PageDisplayed event has been properly added.
                
    //Define the event.
    void GdViewer1_PageDisplayed(object sender, GdPicture14.WPF.GdViewer.PageDisplayedEventArgs e)
    {
        MessageBox.Show("The displayed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageDisplayed");
    }
    See Also