Class NavigationState
Inheritance
System.Object
NavigationState
Assembly: pdftron.PDF.Tools.dll
public class NavigationState : object
Constructors
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
Declaration
public double HorizontalScrollPosition { get; }
Property Value
Type |
Description |
System.Double |
|
Page
Declaration
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public double VerticalScrollPosition { get; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double Zoom { get; }
Property Value
Type |
Description |
System.Double |
|
Methods
Declaration
public void CleanPositionData()
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 |
|
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 |
|
Declaration
public static NavigationState TakeSnapshot(ReflowViewModel reflow)
Parameters
Returns
Declaration
public static NavigationState TakeSnapshot(PDFViewCtrl pdfView)
Parameters
Type |
Name |
Description |
PDFViewCtrl |
pdfView |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|