PdfViewer.GoToPreviousPage

Moves to the previous page.

public bool GoToPreviousPage()
Function GoToPreviousPage() As Boolean

Returns

Boolean

True if successfully moved to previous page else false.

Licensing Info

This method is a DynamicPDF Viewer feature. One of the following is required for non-evaluation usage:

Examples

The following example will show how to move to previous page.

Imports System
Imports System.Windows.Forms
Imports ceTe.DynamicPDF.Viewer

Public Class Form1
    Inherits System.Windows.Forms.Form

    Private MyPdfViewer As PdfViewer

    Sub New()
        InitializeComponent()
    End Sub

    Private Sub InitializeComponent()
        Me.MyPdfViewer = New PdfViewer()
        Me.Controls.Add(MyPdfViewer)
    End Sub

    Shared Sub Main()
        Application.Run(New Form1())
    End Sub			
    
    Private Sub NavigateToPage()
		' Move to previous page.
		Dim bResult As Boolean = MyPdfViewer.GoToPreviousPage()

		If bResult Then
			MessageBox.Show("Successfully moved to previous page")
		Else
			MessageBox.Show("There's no previous page to move")
		End If
	End Sub

End Class
using System;
using System.Windows.Forms;
using ceTe.DynamicPDF.Viewer;

namespace DynamicPDFViewerDemo
{
    public class Form1 : Form
    {
        private ceTe.DynamicPDF.Viewer.PdfViewer dpdfViewer;

        public Form1()
        {
            InitializeComponent();
        }

        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }						

        private void InitializeComponent()
        {
            this.dpdfViewer = new PdfViewer();
            this.Controls.Add(dpdfViewer);
        }

        private void NavigateToPage()
        {
            // Move to previous page.
            bool bResult = GoToPreviousPage();

            if(bResult)
                MessageBox.Show("Successfully moved to previous page");
            else
                MessageBox.Show("There's no previous page to move");
        }
    }
}

See Also

PdfViewer
ceTe.DynamicPDF.Viewer

In this topic