Class UndoRedoManager
Inheritance
System.Object
UndoRedoManager
Namespace: pdftron.PDF.Tools
Assembly: pdftron.PDF.Tools.dll
Syntax
public class UndoRedoManager : object, IUndoRedoManager, IDisposable
Properties
CanRedo
Declaration
public bool CanRedo { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanUndo
Declaration
public bool CanUndo { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Dispose()
Declaration
public void Dispose()
DoRedo()
Reverts to the document state that was undone with call to DoUndo.
Declaration
public void DoRedo()
DoUndo()
Reverts to previous document state.
Declaration
public void DoUndo()
InitializeUndoRedoActionOnDocumentLoad(PDFViewCtrl, ToolManager)
Declaration
public void InitializeUndoRedoActionOnDocumentLoad(PDFViewCtrl ctrl, ToolManager toolManager)
Parameters
Type | Name | Description |
---|---|---|
PDFViewCtrl | ctrl | |
ToolManager | toolManager |
TakeSnapshot(String, Boolean)
Takes snapshot of the current document state.
Declaration
public void TakeSnapshot(string metaInfo = "", bool requiresPageLayoutUpdate = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | metaInfo | Brief snap shot description |
System.Boolean | requiresPageLayoutUpdate | Updates the page layout withing the view. This function must be called after document page sequence is modified (such as when a page is being added to or removed from a document) or after changes to page dimensions (e.g. after a page is rotated or resized). |
Events
OnUndoRedoStatusChanged
Declaration
public event UndoRedoStatus OnUndoRedoStatusChanged
Event Type
Type | Description |
---|---|
UndoRedoStatus |
Implements
IDisposable