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





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

Please check the corresponded GdViewer.PageDisplayedEventHandler for more details.

Syntax
'Declaration
 
Public Event PageDisplayed As GdViewer.PageDisplayedEventHandler
public event GdViewer.PageDisplayedEventHandler PageDisplayed
public event PageDisplayed: GdViewer.PageDisplayedEventHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.PageDisplayedEventHandler* PageDisplayed
public:
event GdViewer.PageDisplayedEventHandler^ PageDisplayed
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.PageDisplayed, AddressOf GdViewer1_PageDisplayed
            
'Define the event.
Sub GdViewer1_PageDisplayed() Handles GdViewer1.PageDisplayed
    MessageBox.Show("The displayed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageDisplayed")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
            
//Add the event.
GdViewer1.PageDisplayed += GdViewer1_PageDisplayed;
            
//Define the event.
void GdViewer1_PageDisplayed()
{
    MessageBox.Show("The displayed page number: " + GdViewer1.CurrentPage.ToString(), "GdViewer.PageDisplayed");
}
See Also