Show / Hide Table of Contents

Class UndoManager

Undo-redo interface; one-to-one mapped to document

Inheritance
System.Object
UndoManager
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.SDF
Assembly: PDFNetAndroid.dll
Syntax
public class UndoManager : IDisposable

Constructors

UndoManager(IntPtr)

Declaration
public UndoManager(IntPtr impl_ptr)
Parameters
Type Name Description
System.IntPtr impl_ptr

Methods

CanRedo()

Returns a boolean indicating whether it is possible to redo from the current snapshot.

Declaration
public bool CanRedo()
Returns
Type Description
System.Boolean

A boolean indicating whether it is possible to redo from the current snapshot

CanUndo()

Returns whether it is possible to undo from the current snapshot.

Declaration
public bool CanUndo()
Returns
Type Description
System.Boolean

Whether it is possible to undo from the current snapshot

Destroy()

Declaration
public void Destroy()

DiscardAllSnapshots()

Forget all changes in this manager (without changing the document).

Declaration
public DocSnapshot DiscardAllSnapshots()
Returns
Type Description
DocSnapshot

An invalid DocSnapshot

Dispose()

Declaration
public void Dispose()

Dispose(Boolean)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

Finalize()

Declaration
protected void Finalize()

GetNextRedoSnapshot()

Gets the next state of the document. This state may be invalid if it is impossible to redo.

Declaration
public DocSnapshot GetNextRedoSnapshot()
Returns
Type Description
DocSnapshot

The next state of the document. This state may be invalid if it is impossible to redo

GetNextUndoSnapshot()

Gets the previous state of the document. This state may be invalid if it is impossible to undo.

Declaration
public DocSnapshot GetNextUndoSnapshot()
Returns
Type Description
DocSnapshot

The previous state of the document. This state may be invalid if it is impossible to undo

Redo()

Restores to the next snapshot, if there is one.

Declaration
public ResultSnapshot Redo()
Returns
Type Description
ResultSnapshot

A representation of the transition to the next snapshot, if there is one

TakeSnapshot()

Creates a snapshot of document state, transitions to the new snapshot.

Declaration
public ResultSnapshot TakeSnapshot()
Returns
Type Description
ResultSnapshot

A representation of the transition

Undo()

Restores to the previous snapshot point, if there is one.

Declaration
public ResultSnapshot Undo()
Returns
Type Description
ResultSnapshot

The resulting snapshot id

Implements

System.IDisposable
Back to top Generated by DocFX