PdfViewer.NavigateToPreviousView

Navigates to the View in previous history.

public bool NavigateToPreviousView()
Function NavigateToPreviousView() As Boolean

Returns

Boolean

True if successfully moved to previous view 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 Navigate to the previous view.

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 NavigationToView()
		' Navigate to previous view.
		Dim bResult As Boolean = MyPdfViewer.NavigateToPreviousView()

		If bResult Then
			MessageBox.Show("Successfully moved to previous view")
		Else
			MessageBox.Show("There's no previous view to navigate")
		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 NavigationToView()
        {
            // Navigate to previous view.
            bool bResult = NavigateToPreviousView();

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

See Also

PdfViewer
ceTe.DynamicPDF.Viewer

In this topic