Show / Hide Table of Contents

Class NavigationState

Inheritance
System.Object
NavigationState
Namespace: pdftron.PDF.Tools
Assembly: pdftron.PDF.Tools.dll
Syntax
public class NavigationState : object

Constructors

NavigationState(Int32, Double, Double, Double)

Declaration
public NavigationState(int page, double zoom, double horizontalPos, double verticalPos)
Parameters
Type Name Description
System.Int32 page
System.Double zoom
System.Double horizontalPos
System.Double verticalPos

Properties

HorizontalScrollPosition

Declaration
public double HorizontalScrollPosition { get; }
Property Value
Type Description
System.Double

Page

Declaration
public int Page { get; }
Property Value
Type Description
System.Int32

VerticalScrollPosition

Declaration
public double VerticalScrollPosition { get; }
Property Value
Type Description
System.Double

Zoom

Declaration
public double Zoom { get; }
Property Value
Type Description
System.Double

Methods

CleanPositionData()

Declaration
public void CleanPositionData()

Equals(Object)

This will return true if the two views are close enough to the same that we don't need both in the navigation stack.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

It makes no sense to hash this class. So we throw an exception. Equality is meant to determine whether two visual starts are similar enough that it's not worth generating two separate states.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

TakeSnapshot(ReflowViewModel)

Declaration
public static NavigationState TakeSnapshot(ReflowViewModel reflow)
Parameters
Type Name Description
ReflowViewModel reflow
Returns
Type Description
NavigationState

TakeSnapshot(PDFViewCtrl)

Declaration
public static NavigationState TakeSnapshot(PDFViewCtrl pdfView)
Parameters
Type Name Description
PDFViewCtrl pdfView
Returns
Type Description
NavigationState

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
In This Article
Back to top Generated by DocFX