Class PTAnnotationManager
Inheritance
System.Object
PTAnnotationManager
Implements
ObjCRuntime.INativeObject
System.IDisposable
Assembly: Tools.dll
Syntax
public class PTAnnotationManager : NSObject, IPTOverridable
Constructors
PTAnnotationManager(NSObjectFlag)
Declaration
protected PTAnnotationManager(NSObjectFlag t)
Parameters
Type |
Name |
Description |
Foundation.NSObjectFlag |
t |
|
PTAnnotationManager(NativeHandle)
Declaration
protected PTAnnotationManager(NativeHandle handle)
Parameters
Type |
Name |
Description |
ObjCRuntime.NativeHandle |
handle |
|
PTAnnotationManager(PTPDFViewCtrl)
Declaration
public PTAnnotationManager(PTPDFViewCtrl pdfViewCtrl)
Parameters
Declaration
public PTAnnotationManager(PTToolManager toolManager)
Parameters
Properties
AnnotationAuthorIdentifier
Declaration
public virtual string AnnotationAuthorIdentifier { get; set; }
Property Value
Type |
Description |
System.String |
|
AnnotationEditMode
Declaration
public virtual PTAnnotationEditMode AnnotationEditMode { get; set; }
Property Value
AnnotationsLoaded
Declaration
public virtual bool AnnotationsLoaded { get; }
Property Value
Type |
Description |
System.Boolean |
|
ClassHandle
Declaration
public override NativeHandle ClassHandle { get; }
Property Value
Type |
Description |
ObjCRuntime.NativeHandle |
|
DocumentModel
Declaration
public virtual PTDocumentModel DocumentModel { get; }
Property Value
DocumentModelLoaded
Declaration
public virtual bool DocumentModelLoaded { get; }
Property Value
Type |
Description |
System.Boolean |
|
LoadingAnnotations
Declaration
public virtual bool LoadingAnnotations { get; }
Property Value
Type |
Description |
System.Boolean |
|
LoadingDocumentModel
Declaration
public virtual bool LoadingDocumentModel { get; }
Property Value
Type |
Description |
System.Boolean |
|
PdfViewCtrl
Declaration
public virtual PTPDFViewCtrl PdfViewCtrl { get; set; }
Property Value
Declaration
public virtual PTToolManager ToolManager { get; set; }
Property Value
UndoRedoManager
Declaration
public virtual PTUndoRedoManager UndoRedoManager { get; set; }
Property Value
Methods
AnnotationModelForAnnotation(PTAnnot, Int32, Action<PTAnnotationModel, NSError>)
Declaration
public virtual void AnnotationModelForAnnotation(PTAnnot annotation, int pageNumber, Action<PTAnnotationModel, NSError> completionHandler)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
System.Int32 |
pageNumber |
|
System.Action<PTAnnotationModel, Foundation.NSError> |
completionHandler |
|
CanEditAnnotationModel(PTAnnotationModel)
Declaration
public virtual bool CanEditAnnotationModel(PTAnnotationModel annotationModel)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
FindAnnotationWithIdentifier(String, Int32, out NSError)
Declaration
public virtual PTAnnot FindAnnotationWithIdentifier(string annotationIdentifier, int pageNumber, out NSError error)
Parameters
Type |
Name |
Description |
System.String |
annotationIdentifier |
|
System.Int32 |
pageNumber |
|
Foundation.NSError |
error |
|
Returns
GenerateIdentifierForAnnotation(PTAnnot)
Declaration
public virtual void GenerateIdentifierForAnnotation(PTAnnot annotation)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
GetAuthorName(String, out NSError)
Declaration
public virtual string GetAuthorName(string authorIdentifier, out NSError error)
Parameters
Type |
Name |
Description |
System.String |
authorIdentifier |
|
Foundation.NSError |
error |
|
Returns
Type |
Description |
System.String |
|
IsAnnotation(PTAnnot, PTSDFDoc, String)
Declaration
public virtual bool IsAnnotation(PTAnnot annotation, PTSDFDoc document, string otherAnnotationAuthorIdentifier)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
PTSDFDoc |
document |
|
System.String |
otherAnnotationAuthorIdentifier |
|
Returns
Type |
Description |
System.Boolean |
|
IsAnnotation(PTAnnot, String, String)
Declaration
public virtual bool IsAnnotation(PTAnnot annotation, string annotationAuthorIdentifier, string otherAnnotationAuthorIdentifier)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
System.String |
annotationAuthorIdentifier |
|
System.String |
otherAnnotationAuthorIdentifier |
|
Returns
Type |
Description |
System.Boolean |
|
IsAnnotationWithAuthorIdentifier(String, String)
Declaration
public virtual bool IsAnnotationWithAuthorIdentifier(string annotationAuthorIdentifier, string otherAnnotationAuthorIdentifier)
Parameters
Type |
Name |
Description |
System.String |
annotationAuthorIdentifier |
|
System.String |
otherAnnotationAuthorIdentifier |
|
Returns
Type |
Description |
System.Boolean |
|
LoadAnnotationModels()
Declaration
public virtual void LoadAnnotationModels()
LoadDocumentModel()
Declaration
public virtual void LoadDocumentModel()
LoadDocumentModelWithCompletionHandler(Action<PTDocumentModel, NSError>)
Declaration
public virtual void LoadDocumentModelWithCompletionHandler(Action<PTDocumentModel, NSError> completion)
Parameters
Type |
Name |
Description |
System.Action<PTDocumentModel, Foundation.NSError> |
completion |
|
RemoveAllAnnotationsOnPageNumber(Int32, out NSError)
Declaration
public virtual bool RemoveAllAnnotationsOnPageNumber(int pageNumber, out NSError error)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
Foundation.NSError |
error |
|
Returns
Type |
Description |
System.Boolean |
|
RemoveAllAnnotationsWithError(out NSError)
Declaration
public virtual bool RemoveAllAnnotationsWithError(out NSError error)
Parameters
Type |
Name |
Description |
Foundation.NSError |
error |
|
Returns
Type |
Description |
System.Boolean |
|
SetAuthorForAnnotation(PTAnnot, String)
Declaration
public virtual void SetAuthorForAnnotation(PTAnnot annotation, string authorIdentifier)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
System.String |
authorIdentifier |
|
SetAuthorName(String, String, Action<Boolean, NSError>)
Declaration
public virtual void SetAuthorName(string authorName, string authorIdentifier, Action<bool, NSError> completion)
Parameters
Type |
Name |
Description |
System.String |
authorName |
|
System.String |
authorIdentifier |
|
System.Action<System.Boolean, Foundation.NSError> |
completion |
|
UpdateAnnotationsWithXFDFCommand(String, out NSError)
Declaration
public virtual bool UpdateAnnotationsWithXFDFCommand(string xfdfCommand, out NSError error)
Parameters
Type |
Name |
Description |
System.String |
xfdfCommand |
|
Foundation.NSError |
error |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateAnnotationsWithXFDFString(String, out NSError)
Declaration
public virtual bool UpdateAnnotationsWithXFDFString(string xfdfString, out NSError error)
Parameters
Type |
Name |
Description |
System.String |
xfdfString |
|
Foundation.NSError |
error |
|
Returns
Type |
Description |
System.Boolean |
|
UpdateModificationDateForAnnotation(PTAnnot)
Declaration
public virtual void UpdateModificationDateForAnnotation(PTAnnot annotation)
Parameters
Type |
Name |
Description |
PTAnnot |
annotation |
|
Implements
ObjCRuntime.INativeObject
System.IDisposable
Extension Methods