Edit this page

Navigation

You can use the PageUp, PageDown, GoToPage methods to navigate through the document programmatically:

Page Navigation

private void buttonPageUp_Click(object sender, EventArgs e)
{
    this.radPdfViewer1.PdfViewerElement.PageUp();
}
private void buttonPageDown_Click(object sender, EventArgs e)
{
    this.radPdfViewer1.PdfViewerElement.PageDown();
}
private void buttonGotoPage_Click(object sender, EventArgs e)
{
    this.radPdfViewer1.PdfViewerElement.GoToPage(3);
}

Private Sub buttonPageUp_Click(sender As Object, e As EventArgs) Handles buttonPageUp.Click
    Me.radPdfViewer1.PdfViewerElement.PageUp()
End Sub
Private Sub buttonPageDown_Click(sender As Object, e As EventArgs) Handles buttonPageDown.Click
    Me.radPdfViewer1.PdfViewerElement.PageDown()
End Sub
Private Sub buttonGotoPage_Click(sender As Object, e As EventArgs) Handles buttonGotoPage.Click
    Me.radPdfViewer1.PdfViewerElement.GoToPage(3)
End Sub

Additionally, you can control the precise scroll position by using the Scroll method which scrolls the view with a specified offset or the ScrollTo method which scrolls the view to an exact position:

Scrolling

private void buttonScroll_Click(object sender, EventArgs e)
{
    this.radPdfViewer1.PdfViewerElement.Scroll(30, 30);
}
private void buttonScrollTo_Click(object sender, EventArgs e)
{
    this.radPdfViewer1.PdfViewerElement.ScrollTo(0, 300);
}

Private Sub buttonScroll_Click(sender As Object, e As EventArgs) Handles buttonScroll.Click
    Me.radPdfViewer1.PdfViewerElement.Scroll(30, 30)
End Sub
Private Sub buttonScrollTo_Click(sender As Object, e As EventArgs) Handles buttonScrollTo.Click
    Me.radPdfViewer1.PdfViewerElement.ScrollTo(0, 300)
End Sub

See Also

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy