Class UndoRedoManager
Inheritance
System.Object
UndoRedoManager
Implements
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable
Assembly: PDFViewCtrlTools.dll
public class UndoRedoManager : Object, ToolManager.IAnnotationModificationListener, ToolManager.IPdfDocModificationListener, ToolManager.IPdfOutlineModificationListener, ToolManager.IPdfTextModificationListener
Constructors
Declaration
public UndoRedoManager(ToolManager toolManager)
Parameters
Declaration
protected UndoRedoManager(IntPtr javaReference, JniHandleOwnership transfer)
Parameters
Type |
Name |
Description |
System.IntPtr |
javaReference |
|
Android.Runtime.JniHandleOwnership |
transfer |
|
Properties
IsNextRedoEditPageAction
Declaration
public virtual bool IsNextRedoEditPageAction { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsNextUndoEditPageAction
Declaration
public virtual bool IsNextUndoEditPageAction { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public override JniPeerMembers JniPeerMembers { get; }
Property Value
Type |
Description |
Java.Interop.JniPeerMembers |
|
Declaration
public virtual string NextRedoAction { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual string NextUndoAction { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public virtual PDFViewCtrl PdfViewCtrl { get; }
Property Value
Type |
Description |
pdftronprivate.PDF.PDFViewCtrl |
|
Declaration
protected override IntPtr ThresholdClass { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Declaration
protected override Type ThresholdType { get; }
Property Value
Type |
Description |
System.Type |
|
Methods
Declaration
public virtual void AddUndoRedoStateChangeListener(UndoRedoManager.IUndoRedoStateChangeListener listener)
Parameters
Declaration
public virtual void AnnotationsCouldNotBeAdded(string errorMessage)
Parameters
Type |
Name |
Description |
System.String |
errorMessage |
|
Declaration
public virtual bool CanRedo()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool CanUndo()
Returns
Type |
Description |
System.Boolean |
|
Declaration
public virtual void ClearUndoRedoStateChangeListener()
Declaration
public virtual void Destroy()
Declaration
public virtual JSONObject GetAnnotSnapshot(Annot annot, int page)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.Annot |
annot |
|
System.Int32 |
page |
|
Returns
Type |
Description |
Org.Json.JSONObject |
|
GetPageFrom(String)
Declaration
public static int GetPageFrom(string info)
Parameters
Type |
Name |
Description |
System.String |
info |
|
Returns
Type |
Description |
System.Int32 |
|
GetPageList(String)
Declaration
public static IList<Integer> GetPageList(string info)
Parameters
Type |
Name |
Description |
System.String |
info |
|
Returns
Type |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
|
GetPageTo(String)
Declaration
public static int GetPageTo(string info)
Parameters
Type |
Name |
Description |
System.String |
info |
|
Returns
Type |
Description |
System.Int32 |
|
IsAddAnnotationAction(Context, String)
Declaration
public static bool IsAddAnnotationAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsAddPagesAction(Context, String)
Declaration
public static bool IsAddPagesAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsDeletePagesAction(Context, String)
Declaration
public static bool IsDeletePagesAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsEditContentAction(Context, String)
Declaration
public static bool IsEditContentAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsEditPageAction(Context, String)
Declaration
public static bool IsEditPageAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsEditPageLabelsAction(Context, String)
Declaration
public static bool IsEditPageLabelsAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsModifyAnnotationAction(Context, String)
Declaration
public static bool IsModifyAnnotationAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsMovePageAction(Context, String)
Declaration
public static bool IsMovePageAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsMovePagesAction(Context, String)
Declaration
public static bool IsMovePagesAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsRemoveAnnotationAction(Context, String)
Declaration
public static bool IsRemoveAnnotationAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
IsRotatePagesAction(Context, String)
Declaration
public static bool IsRotatePagesAction(Context context, string info)
Parameters
Type |
Name |
Description |
Android.Content.Context |
context |
|
System.String |
info |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static void JumpToUndoRedo(PDFViewCtrl pdfViewCtrl, string info, bool isUndo)
Parameters
Type |
Name |
Description |
pdftronprivate.PDF.PDFViewCtrl |
pdfViewCtrl |
|
System.String |
info |
|
System.Boolean |
isUndo |
|
Declaration
public virtual void NotifyUndoRedoStateChange()
Declaration
public virtual void OnAllAnnotationsRemoved()
Declaration
public virtual void OnAnnotationAction()
Declaration
public virtual void OnAnnotationsAdded(IDictionary<Annot, Integer> annots)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<pdftronprivate.PDF.Annot, Java.Lang.Integer> |
annots |
|
Declaration
public virtual void OnAnnotationsModified(IDictionary<Annot, Integer> annots, Bundle extra)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<pdftronprivate.PDF.Annot, Java.Lang.Integer> |
annots |
|
Android.OS.Bundle |
extra |
|
Declaration
public virtual void OnAnnotationsPreModify(IDictionary<Annot, Integer> annots)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<pdftronprivate.PDF.Annot, Java.Lang.Integer> |
annots |
|
Declaration
public virtual void OnAnnotationsPreRemove(IDictionary<Annot, Integer> annots)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<pdftronprivate.PDF.Annot, Java.Lang.Integer> |
annots |
|
Declaration
public virtual void OnAnnotationsRemoved(IDictionary<Annot, Integer> annots)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<pdftronprivate.PDF.Annot, Java.Lang.Integer> |
annots |
|
OnAnnotationsRemovedOnPage(Int32)
Declaration
public virtual void OnAnnotationsRemovedOnPage(int pageNum)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNum |
|
Declaration
public virtual void OnBookmarkModified(IList<UserBookmarkItem> bookmarkItems)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<UserBookmarkItem> |
bookmarkItems |
|
Declaration
public virtual void OnOutlineChanged()
OnPageLabelsChanged()
Declaration
public virtual void OnPageLabelsChanged()
OnPageMoved(Int32, Int32)
Declaration
public virtual void OnPageMoved(int from, int to)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
OnPagesAdded(IList<Integer>)
Declaration
public virtual void OnPagesAdded(IList<Integer> pageList)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
pageList |
|
OnPagesCropped()
Declaration
public virtual void OnPagesCropped()
OnPagesDeleted(IList<Integer>)
Declaration
public virtual void OnPagesDeleted(IList<Integer> pageList)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
pageList |
|
OnPagesMoved(IList<Integer>, Int32, Int32)
Declaration
public virtual void OnPagesMoved(IList<Integer> pagesMoved, int to, int currentPage)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
pagesMoved |
|
System.Int32 |
to |
|
System.Int32 |
currentPage |
|
OnPagesRotated(IList<Integer>)
Declaration
public virtual void OnPagesRotated(IList<Integer> pageList)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<Java.Lang.Integer> |
pageList |
|
OnPdfTextChanged()
Declaration
public virtual void OnPdfTextChanged()
Declaration
public virtual void OnRedaction(JSONObject jsonObj)
Parameters
Type |
Name |
Description |
Org.Json.JSONObject |
jsonObj |
|
Declaration
public virtual string Redo()
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string Redo(int locationId, bool sendEvent)
Parameters
Type |
Name |
Description |
System.Int32 |
locationId |
|
System.Boolean |
sendEvent |
|
Returns
Type |
Description |
System.String |
|
Declaration
public virtual void RemoveUndoRedoStateChangeListener(UndoRedoManager.IUndoRedoStateChangeListener listener)
Parameters
Declaration
public virtual void SendConsecutiveUndoRedoEvent()
Declaration
public static void SetDebug(bool debug)
Parameters
Type |
Name |
Description |
System.Boolean |
debug |
|
Declaration
public virtual void SetEditToolbarImpl(EditToolbarImpl editToolbarImpl)
Parameters
Declaration
public virtual void TakeUndoSnapshotForSafety()
Declaration
public virtual string Undo()
Returns
Type |
Description |
System.String |
|
Declaration
public virtual string Undo(int locationId, bool sendEvent)
Parameters
Type |
Name |
Description |
System.Int32 |
locationId |
|
System.Boolean |
sendEvent |
|
Returns
Type |
Description |
System.String |
|
Events
Declaration
public event EventHandler UndoRedoStateChange
Event Type
Type |
Description |
System.EventHandler |
|
Implements
Android.Runtime.IJavaObject
System.IDisposable
Java.Interop.IJavaPeerable