PdfViewer.NavigateToNextView
Navigates to the View in next history.
public bool NavigateToNextView()
Function NavigateToNextView() As Boolean
Returns
True if successfully moved to next view else false.
Licensing Info
This method is a DynamicPDF Viewer feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Viewer selected.
- A DynamicPDF Viewer for .NET v3.X Developer license.
Examples
The following example will show how to Navigate to the next 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 next view.
Dim bResult As Boolean = MyPdfViewer.NavigateToNextView()
If bResult Then
MessageBox.Show("Successfully moved to next view")
Else
MessageBox.Show("There's no next 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 next view.
bool bResult = NavigateToNextView();
if(bResult)
MessageBox.Show("Successfully moved to next view");
else
MessageBox.Show("There's no next view to navigate");
}
}
}