Class NavigationStack
Inheritance
System.Object
NavigationStack
Assembly: pdftron.PDF.Tools.dll
public class NavigationStack : object
Constructors
Declaration
Declaration
public NavigationStack(ReflowViewModel reflow)
Parameters
Declaration
public NavigationStack(PDFViewCtrl ctrl)
Parameters
Type |
Name |
Description |
PDFViewCtrl |
ctrl |
|
Fields
Declaration
public NavigationStack.Navigators _CurrentNavigator
Field Value
Properties
Declaration
public NavigationStack.Navigators CurrentNavigator { get; set; }
Property Value
True if it is possible to redo an action
Declaration
public bool IsRedoEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
True if it is possible to undo an action
Declaration
public bool IsUndoEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public ReflowViewModel ReflowViewModel { get; set; }
Property Value
Methods
Removes specific data related to zoom and scroll positions. Useful after, for example, changing page presentation mode
Declaration
public void CleanPositionData()
Empties the Navigation Stack
Declaration
Same as PDFViewCtrl.ExecuteAction but records state information for the navigation stack.
A PDFViewCtrl is required for this to work.
Declaration
public void ExecuteAction(ActionParameter actionParam)
Parameters
Type |
Name |
Description |
ActionParameter |
actionParam |
The action to execute
|
Redoes a navigation action
Declaration
Used to register a switch from one NavigationState to Another
For example, when creating composite interactions, like setting page number and then setting scroll position
this function can be used with a NavigationState.TakeSnapshot before and after the composite interaction
Declaration
public void RegisterJump(NavigationState beforeState, NavigationState afterState)
Parameters
SetCurrentPage(Int32)
Same as PDFViewCtrl.SetCurrentPage or ReflowViewModel.SetPageNumber
but records state information for the navigation stack.
Declaration
public bool SetCurrentPage(int pageNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
The page number to go to
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Undoes a navigation action
Declaration
Declaration
public void Unsubscribe()
Events
Declaration
public event NavigationStack.NavigationStackChangedDelegate NavigationStackChanged
Event Type