Show / Hide Table of Contents

Class PTTool

Inheritance
System.Object
PTTool
PTAnnotEditTool
PTAnnotSelectTool
PTCreateToolBase
PTDigitalSignatureTool
PTFormFillTool
PTFreeTextCreate
PTPanTool
PTRichMediaTool
PTSmartPen
PTTextMarkupCreate
PTTextSelectTool
Implements
IPTNoteEditControllerDelegate
IPTOverridable
IPTToolSwitching
IPTPDFViewCtrlToolDelegate
ObjCRuntime.INativeObject
System.IDisposable
UIKit.IUIAdaptivePresentationControllerDelegate
UIKit.IUIGestureRecognizerDelegate
UIKit.IUIPopoverPresentationControllerDelegate
Namespace: pdftron.PDF.Tools
Assembly: Tools.dll
Syntax
public class PTTool : UIView, IPTNoteEditControllerDelegate, IPTOverridable, IPTToolSwitching, IPTPDFViewCtrlToolDelegate, INativeObject, IDisposable, IUIAdaptivePresentationControllerDelegate, IUIGestureRecognizerDelegate, IUIPopoverPresentationControllerDelegate

Constructors

PTTool(NSCoder)

Declaration
public PTTool(NSCoder coder)
Parameters
Type Name Description
Foundation.NSCoder coder

PTTool(NSObjectFlag)

Declaration
protected PTTool(NSObjectFlag t)
Parameters
Type Name Description
Foundation.NSObjectFlag t

PTTool(PTPDFViewCtrl)

Declaration
public PTTool(PTPDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl

PTTool(IntPtr)

Declaration
protected PTTool(IntPtr handle)
Parameters
Type Name Description
System.IntPtr handle

Properties

AllowScrolling

Declaration
public virtual bool AllowScrolling { get; }
Property Value
Type Description
System.Boolean

AllowZoom

Declaration
public virtual bool AllowZoom { get; set; }
Property Value
Type Description
System.Boolean

AnnotationAuthor

Declaration
public virtual string AnnotationAuthor { get; set; }
Property Value
Type Description
System.String

AnnotationPageNumber

Declaration
public virtual uint AnnotationPageNumber { get; set; }
Property Value
Type Description
System.UInt32

AnnotClass

Declaration
public virtual Class AnnotClass { get; }
Property Value
Type Description
ObjCRuntime.Class

AnnotType

Declaration
public virtual PTExtendedAnnotType AnnotType { get; }
Property Value
Type Description
PTExtendedAnnotType

Appearance

Declaration
public static PTTool.PTToolAppearance Appearance { get; }
Property Value
Type Description
PTTool.PTToolAppearance

BackToPanToolAfterUse

Declaration
public virtual bool BackToPanToolAfterUse { get; set; }
Property Value
Type Description
System.Boolean

CanEditStyle

Declaration
public virtual bool CanEditStyle { get; }
Property Value
Type Description
System.Boolean

ClassAnnotType

Declaration
public static PTExtendedAnnotType ClassAnnotType { get; }
Property Value
Type Description
PTExtendedAnnotType

ClassCanEditStyle

Declaration
public static bool ClassCanEditStyle { get; }
Property Value
Type Description
System.Boolean

ClassCreatesAnnotation

Declaration
public static bool ClassCreatesAnnotation { get; }
Property Value
Type Description
System.Boolean

ClassHandle

Declaration
public override IntPtr ClassHandle { get; }
Property Value
Type Description
System.IntPtr

CreatesAnnotation

Declaration
public virtual bool CreatesAnnotation { get; }
Property Value
Type Description
System.Boolean

CurrentAnnotation

Declaration
public virtual PTAnnot CurrentAnnotation { get; set; }
Property Value
Type Description
PTAnnot

DefaultClass

Declaration
public virtual Class DefaultClass { get; set; }
Property Value
Type Description
ObjCRuntime.Class

Identifier

Declaration
public virtual string Identifier { get; set; }
Property Value
Type Description
System.String

Image

Declaration
public static UIImage Image { get; }
Property Value
Type Description
UIKit.UIImage

LocalizedName

Declaration
public static string LocalizedName { get; }
Property Value
Type Description
System.String

LongPressPoint

Declaration
public virtual CGPoint LongPressPoint { get; set; }
Property Value
Type Description
CoreGraphics.CGPoint

NewTool

Declaration
public virtual UIView NewTool { get; }
Property Value
Type Description
UIKit.UIView

NextToolType

Declaration
public virtual Class NextToolType { get; set; }
Property Value
Type Description
ObjCRuntime.Class

PageIndicatorIsVisible

Declaration
public virtual bool PageIndicatorIsVisible { get; set; }
Property Value
Type Description
System.Boolean

PdfViewCtrl

Declaration
public virtual PTPDFViewCtrl PdfViewCtrl { get; }
Property Value
Type Description
PTPDFViewCtrl

PreviousToolType

Declaration
public virtual Class PreviousToolType { get; set; }
Property Value
Type Description
ObjCRuntime.Class

TextMarkupAdobeHack

Declaration
public virtual bool TextMarkupAdobeHack { get; set; }
Property Value
Type Description
System.Boolean

ToolManager

Declaration
public virtual PTToolManager ToolManager { get; set; }
Property Value
Type Description
PTToolManager

UndoManagerEnabled

Declaration
public virtual bool UndoManagerEnabled { get; }
Property Value
Type Description
System.Boolean

Methods

AnnotationAdded(PTAnnot, nuint)

Declaration
public virtual void AnnotationAdded(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

AnnotationFlattened(PTAnnot, nuint)

Declaration
public virtual void AnnotationFlattened(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

AnnotationModified(PTAnnot, nuint)

Declaration
public virtual void AnnotationModified(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

AnnotationRemoved(PTAnnot, nuint)

Declaration
public virtual void AnnotationRemoved(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

AppearanceWhenContainedIn(Type[])

Declaration
public static PTTool.PTToolAppearance AppearanceWhenContainedIn(params Type[] containers)
Parameters
Type Name Description
System.Type[] containers
Returns
Type Description
PTTool.PTToolAppearance

CalculateAnnotationPosition(PTExtendedAnnotType, Int32, Boolean)

Declaration
public virtual void CalculateAnnotationPosition(PTExtendedAnnotType annotType, int pageNumber, bool includePageCenter)
Parameters
Type Name Description
PTExtendedAnnotType annotType
System.Int32 pageNumber
System.Boolean includePageCenter

CanEditAnnotation(PTAnnot, nuint)

Declaration
public virtual bool CanEditAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber
Returns
Type Description
System.Boolean

CGRectCanvasToCGRectScreen(CGRect)

Declaration
public virtual CGRect CGRectCanvasToCGRectScreen(CGRect canvasRect)
Parameters
Type Name Description
CoreGraphics.CGRect canvasRect
Returns
Type Description
CoreGraphics.CGRect

CGRectScreen2PDFRectPage(CGRect, Int32)

Declaration
public virtual PTPDFRect CGRectScreen2PDFRectPage(CGRect screenRect, int pageNumber)
Parameters
Type Name Description
CoreGraphics.CGRect screenRect
System.Int32 pageNumber
Returns
Type Description
PTPDFRect

CGRectScreenToCGRectCanvas(CGRect)

Declaration
public virtual CGRect CGRectScreenToCGRectCanvas(CGRect screenRect)
Parameters
Type Name Description
CoreGraphics.CGRect screenRect
Returns
Type Description
CoreGraphics.CGRect

CommitAnnotation()

Declaration
public virtual void CommitAnnotation()

ConvertPagePtToScreenPt(CGPoint, Int32)

Declaration
public virtual CGPoint ConvertPagePtToScreenPt(CGPoint pagePoint, int pageNumber)
Parameters
Type Name Description
CoreGraphics.CGPoint pagePoint
System.Int32 pageNumber
Returns
Type Description
CoreGraphics.CGPoint

ConvertPagePtToScreenPtX(out nfloat, out nfloat, Int32)

Declaration
public virtual void ConvertPagePtToScreenPtX(out nfloat x, out nfloat y, int pageNumber)
Parameters
Type Name Description
System.nfloat x
System.nfloat y
System.Int32 pageNumber

ConvertScreenPtToPagePt(CGPoint, Int32)

Declaration
public virtual CGPoint ConvertScreenPtToPagePt(CGPoint screenPoint, int pageNumber)
Parameters
Type Name Description
CoreGraphics.CGPoint screenPoint
System.Int32 pageNumber
Returns
Type Description
CoreGraphics.CGPoint

ConvertScreenPtToPagePtX(out nfloat, out nfloat, Int32)

Declaration
public virtual void ConvertScreenPtToPagePtX(out nfloat x, out nfloat y, int pageNumber)
Parameters
Type Name Description
System.nfloat x
System.nfloat y
System.Int32 pageNumber

DeleteSelectedAnnotation()

Declaration
public virtual void DeleteSelectedAnnotation()

DidCopyText(String, UIPasteboard)

Declaration
public virtual void DidCopyText(string copiedText, UIPasteboard pasteboard)
Parameters
Type Name Description
System.String copiedText
UIKit.UIPasteboard pasteboard

DidSelectAnnotation(PTAnnot, nuint)

Declaration
public virtual void DidSelectAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

Dispose(Boolean)

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

EditSelectedAnnotationNote()

Declaration
public virtual void EditSelectedAnnotationNote()

ExecuteAction(PTActionParameter)

Declaration
public virtual void ExecuteAction(PTActionParameter action_param)
Parameters
Type Name Description
PTActionParameter action_param

FlattenAnnotations(PTAnnot[])

Declaration
public virtual void FlattenAnnotations(PTAnnot[] annotations)
Parameters
Type Name Description
PTAnnot[] annotations

FlattenAnnotations(PTAnnot[], Int32, out NSError)

Declaration
public virtual bool FlattenAnnotations(PTAnnot[] annotations, int pageNumber, out NSError error)
Parameters
Type Name Description
PTAnnot[] annotations
System.Int32 pageNumber
Foundation.NSError error
Returns
Type Description
System.Boolean

FormFieldDataModified(PTAnnot, nuint)

Declaration
public virtual void FormFieldDataModified(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

GeneratedAppearance(PTPDFViewCtrl, UIImageView, PTAnnot, UInt32)

Declaration
public virtual void GeneratedAppearance(PTPDFViewCtrl pdfViewCtrl, UIImageView imageView, PTAnnot annot, uint pageNumber)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIImageView imageView
PTAnnot annot
System.UInt32 pageNumber

GetAppearance(UITraitCollection)

Declaration
public static PTTool.PTToolAppearance GetAppearance(UITraitCollection traits)
Parameters
Type Name Description
UIKit.UITraitCollection traits
Returns
Type Description
PTTool.PTToolAppearance

GetAppearance(UITraitCollection, Type[])

Declaration
public static PTTool.PTToolAppearance GetAppearance(UITraitCollection traits, params Type[] containers)
Parameters
Type Name Description
UIKit.UITraitCollection traits
System.Type[] containers
Returns
Type Description
PTTool.PTToolAppearance

GetAppearance<T>()

Declaration
public static PTTool.PTToolAppearance GetAppearance<T>()
    where T : PTTool
Returns
Type Description
PTTool.PTToolAppearance
Type Parameters
Name Description
T

GetAppearance<T>(UITraitCollection)

Declaration
public static PTTool.PTToolAppearance GetAppearance<T>(UITraitCollection traits)
    where T : PTTool
Parameters
Type Name Description
UIKit.UITraitCollection traits
Returns
Type Description
PTTool.PTToolAppearance
Type Parameters
Name Description
T

GetAppearance<T>(UITraitCollection, Type[])

Declaration
public static PTTool.PTToolAppearance GetAppearance<T>(UITraitCollection traits, params Type[] containers)
    where T : PTTool
Parameters
Type Name Description
UIKit.UITraitCollection traits
System.Type[] containers
Returns
Type Description
PTTool.PTToolAppearance
Type Parameters
Name Description
T

GetRectUnion(PTPDFRect, PTPDFRect)

Declaration
public static PTPDFRect GetRectUnion(PTPDFRect rect1, PTPDFRect rect2)
Parameters
Type Name Description
PTPDFRect rect1
PTPDFRect rect2
Returns
Type Description
PTPDFRect

HandleDoubleTap(PTPDFViewCtrl, UITapGestureRecognizer)

Declaration
public virtual bool HandleDoubleTap(PTPDFViewCtrl pdfViewCtrl, UITapGestureRecognizer gestureRecognizer)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UITapGestureRecognizer gestureRecognizer
Returns
Type Description
System.Boolean

HandleFileAttachment(PTFileAttachment, nuint)

Declaration
public virtual void HandleFileAttachment(PTFileAttachment fileAttachment, nuint pageNumber)
Parameters
Type Name Description
PTFileAttachment fileAttachment
System.nuint pageNumber

HandleLongPress(PTPDFViewCtrl, UILongPressGestureRecognizer)

Declaration
public virtual bool HandleLongPress(PTPDFViewCtrl pdfViewCtrl, UILongPressGestureRecognizer gestureRecognizer)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UILongPressGestureRecognizer gestureRecognizer
Returns
Type Description
System.Boolean

HandleTap(PTPDFViewCtrl, UITapGestureRecognizer)

Declaration
public virtual bool HandleTap(PTPDFViewCtrl pdfViewCtrl, UITapGestureRecognizer gestureRecognizer)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UITapGestureRecognizer gestureRecognizer
Returns
Type Description
System.Boolean

HideMenu()

Declaration
public virtual void HideMenu()

JavascriptCallback(PTPDFViewCtrl, String, String)

Declaration
public virtual void JavascriptCallback(PTPDFViewCtrl pdfViewCtrl, string event_type, string json)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
System.String event_type
System.String json

KeepToolAppearanceOnScreen()

Declaration
public virtual void KeepToolAppearanceOnScreen()

KeepToolAppearanceOnScreenWithImageView(UIImageView)

Declaration
public virtual void KeepToolAppearanceOnScreenWithImageView(UIImageView imageView)
Parameters
Type Name Description
UIKit.UIImageView imageView

ModifyAnnotation(PTAnnot, nuint, Action<PTAnnot, int>)

Declaration
public virtual void ModifyAnnotation(PTAnnot annotation, nuint pageNumber, Action<PTAnnot, int> block)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber
System.Action<PTAnnot, System.Int32> block

NoteEditControllerCancelButtonPressed(PTNoteEditController, Boolean)

Declaration
public virtual void NoteEditControllerCancelButtonPressed(PTNoteEditController noteEditController, bool showSelectionMenu)
Parameters
Type Name Description
PTNoteEditController noteEditController
System.Boolean showSelectionMenu

NoteEditControllerDeleteSelectedAnnotation(PTNoteEditController)

Declaration
public virtual void NoteEditControllerDeleteSelectedAnnotation(PTNoteEditController noteEditController)
Parameters
Type Name Description
PTNoteEditController noteEditController

NoteEditControllerSaveNewNote(PTNoteEditController, String)

Declaration
public virtual void NoteEditControllerSaveNewNote(PTNoteEditController noteEditController, string str)
Parameters
Type Name Description
PTNoteEditController noteEditController
System.String str

NoteEditControllerStyleButtonPressed(PTNoteEditController)

Declaration
public virtual void NoteEditControllerStyleButtonPressed(PTNoteEditController noteEditController)
Parameters
Type Name Description
PTNoteEditController noteEditController

OnSwitchToolEvent(NSObject)

Declaration
public virtual bool OnSwitchToolEvent(NSObject userData)
Parameters
Type Name Description
Foundation.NSObject userData
Returns
Type Description
System.Boolean

OnTouchesBegan(PTPDFViewCtrl, NSSet<UITouch>, UIEvent)

Declaration
public virtual bool OnTouchesBegan(PTPDFViewCtrl pdfViewCtrl, NSSet<UITouch> touches, UIEvent event)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
Foundation.NSSet<UIKit.UITouch> touches
UIKit.UIEvent event
Returns
Type Description
System.Boolean

OnTouchesCancelled(PTPDFViewCtrl, NSSet<UITouch>, UIEvent)

Declaration
public virtual bool OnTouchesCancelled(PTPDFViewCtrl pdfViewCtrl, NSSet<UITouch> touches, UIEvent event)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
Foundation.NSSet<UIKit.UITouch> touches
UIKit.UIEvent event
Returns
Type Description
System.Boolean

OnTouchesEnded(PTPDFViewCtrl, NSSet<UITouch>, UIEvent)

Declaration
public virtual bool OnTouchesEnded(PTPDFViewCtrl pdfViewCtrl, NSSet<UITouch> touches, UIEvent event)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
Foundation.NSSet<UIKit.UITouch> touches
UIKit.UIEvent event
Returns
Type Description
System.Boolean

OnTouchesMoved(PTPDFViewCtrl, NSSet<UITouch>, UIEvent)

Declaration
public virtual bool OnTouchesMoved(PTPDFViewCtrl pdfViewCtrl, NSSet<UITouch> touches, UIEvent event)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
Foundation.NSSet<UIKit.UITouch> touches
UIKit.UIEvent event
Returns
Type Description
System.Boolean

OuterScrollViewDidEndDecelerating(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewDidEndDecelerating(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewDidEndDragging(PTPDFViewCtrl, UIScrollView, Boolean)

Declaration
public virtual void OuterScrollViewDidEndDragging(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, bool decelerate)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
System.Boolean decelerate

OuterScrollViewDidEndScrollingAnimation(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewDidEndScrollingAnimation(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewDidEndZooming(PTPDFViewCtrl, UIScrollView, UIView, Single)

Declaration
public virtual void OuterScrollViewDidEndZooming(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, UIView view, float scale)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
UIKit.UIView view
System.Single scale

OuterScrollViewDidScroll(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewDidScroll(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewDidScrollToTop(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewDidScrollToTop(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewDidZoom(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewDidZoom(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewShouldScrollToTop(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual bool OuterScrollViewShouldScrollToTop(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
Returns
Type Description
System.Boolean

OuterScrollViewWillBeginDecelerating(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewWillBeginDecelerating(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewWillBeginDragging(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void OuterScrollViewWillBeginDragging(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

OuterScrollViewWillBeginZooming(PTPDFViewCtrl, UIScrollView, UIView)

Declaration
public virtual void OuterScrollViewWillBeginZooming(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, UIView view)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
UIKit.UIView view

PageBoxInScreenPtsForPageNumber(Int32)

Declaration
public virtual PTPDFRect PageBoxInScreenPtsForPageNumber(int pageNumber)
Parameters
Type Name Description
System.Int32 pageNumber
Returns
Type Description
PTPDFRect

PageCropBoxForPageNumber(Int32)

Declaration
public virtual PTPDFRect PageCropBoxForPageNumber(int pageNumber)
Parameters
Type Name Description
System.Int32 pageNumber
Returns
Type Description
PTPDFRect

PageNumberChangedFrom(PTPDFViewCtrl, Int32, Int32)

Declaration
public virtual void PageNumberChangedFrom(PTPDFViewCtrl pdfViewCtrl, int oldPageNumber, int newPageNumber)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
System.Int32 oldPageNumber
System.Int32 newPageNumber

PageRotationForPageNumber(Int32)

Declaration
public virtual int PageRotationForPageNumber(int pageNumber)
Parameters
Type Name Description
System.Int32 pageNumber
Returns
Type Description
System.Int32

PDFRectPage2CGRectScreen(PTPDFRect, Int32)

Declaration
public virtual CGRect PDFRectPage2CGRectScreen(PTPDFRect r, int pageNumber)
Parameters
Type Name Description
PTPDFRect r
System.Int32 pageNumber
Returns
Type Description
CoreGraphics.CGRect

PDFRectScreen2CGRectScreen(PTPDFRect)

Declaration
public virtual CGRect PDFRectScreen2CGRectScreen(PTPDFRect r)
Parameters
Type Name Description
PTPDFRect r
Returns
Type Description
CoreGraphics.CGRect

PDFRectScreen2CGRectScreen(PTPDFRect, Int32)

Declaration
public virtual CGRect PDFRectScreen2CGRectScreen(PTPDFRect r, int pageNumber)
Parameters
Type Name Description
PTPDFRect r
System.Int32 pageNumber
Returns
Type Description
CoreGraphics.CGRect

PdfScrollViewDidEndDecelerating(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewDidEndDecelerating(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewDidEndDragging(PTPDFViewCtrl, UIScrollView, Boolean)

Declaration
public virtual void PdfScrollViewDidEndDragging(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, bool decelerate)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
System.Boolean decelerate

PdfScrollViewDidEndScrollingAnimation(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewDidEndScrollingAnimation(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewDidEndZooming(PTPDFViewCtrl, UIScrollView, UIView, Single)

Declaration
public virtual void PdfScrollViewDidEndZooming(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, UIView view, float scale)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
UIKit.UIView view
System.Single scale

PdfScrollViewDidScroll(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewDidScroll(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewDidScrollToTop(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewDidScrollToTop(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewDidZoom(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewDidZoom(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewShouldScrollToTop(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual bool PdfScrollViewShouldScrollToTop(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
Returns
Type Description
System.Boolean

PdfScrollViewWillBeginDecelerating(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewWillBeginDecelerating(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewWillBeginDragging(PTPDFViewCtrl, UIScrollView)

Declaration
public virtual void PdfScrollViewWillBeginDragging(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView

PdfScrollViewWillBeginZooming(PTPDFViewCtrl, UIScrollView, UIView)

Declaration
public virtual void PdfScrollViewWillBeginZooming(PTPDFViewCtrl pdfViewCtrl, UIScrollView scrollView, UIView view)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIScrollView scrollView
UIKit.UIView view

PdfViewCtrlOnLayoutChanged(PTPDFViewCtrl)

Declaration
public virtual void PdfViewCtrlOnLayoutChanged(PTPDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl

PdfViewCtrlOnRenderFinished(PTPDFViewCtrl)

Declaration
public virtual void PdfViewCtrlOnRenderFinished(PTPDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl

PdfViewCtrlOnSetDoc(PTPDFViewCtrl)

Declaration
public virtual void PdfViewCtrlOnSetDoc(PTPDFViewCtrl pdfViewCtrl)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl

RemoveAllSnappingViews()

Declaration
public virtual void RemoveAllSnappingViews()

RemoveAppearanceViews()

Declaration
public virtual void RemoveAppearanceViews()

ScreenRectOfMovingAnnotationClosestToPosition(CGRect)

Declaration
public virtual CGRect ScreenRectOfMovingAnnotationClosestToPosition(CGRect position)
Parameters
Type Name Description
CoreGraphics.CGRect position
Returns
Type Description
CoreGraphics.CGRect

ScreenRectOfResizingAnnotationClosestToPosition(CGRect)

Declaration
public virtual CGRect ScreenRectOfResizingAnnotationClosestToPosition(CGRect position)
Parameters
Type Name Description
CoreGraphics.CGRect position
Returns
Type Description
CoreGraphics.CGRect

SetBackgroundColorForNote(PTNoteEditController, UIColor)

Declaration
public virtual void SetBackgroundColorForNote(PTNoteEditController noteEditController, UIColor fillColor)
Parameters
Type Name Description
PTNoteEditController noteEditController
UIKit.UIColor fillColor

SetBarButtonColorForNote(PTNoteEditController, UIColor)

Declaration
public virtual void SetBarButtonColorForNote(PTNoteEditController noteEditController, UIColor barButtonColor)
Parameters
Type Name Description
PTNoteEditController noteEditController
UIKit.UIColor barButtonColor

ShouldHandleIndirectScribbleInteraction(UIIndirectScribbleInteraction, PTAnnot, nuint)

Declaration
public virtual bool ShouldHandleIndirectScribbleInteraction(UIIndirectScribbleInteraction scribbleInteraction, PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
UIKit.UIIndirectScribbleInteraction scribbleInteraction
PTAnnot annotation
System.nuint pageNumber
Returns
Type Description
System.Boolean

ShouldHandleLinkAnnotation(PTAnnot, PTLinkInfo, nuint)

Declaration
public virtual bool ShouldHandleLinkAnnotation(PTAnnot annotation, PTLinkInfo linkInfo, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
PTLinkInfo linkInfo
System.nuint pageNumber
Returns
Type Description
System.Boolean

ShouldInteractWithForm(PTAnnot, nuint)

Declaration
public virtual bool ShouldInteractWithForm(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber
Returns
Type Description
System.Boolean

ShouldSelectAnnotation(PTAnnot, nuint)

Declaration
public virtual bool ShouldSelectAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber
Returns
Type Description
System.Boolean

ShouldShowMenu(UIMenuController, PTAnnot, nuint)

Declaration
public virtual bool ShouldShowMenu(UIMenuController menuController, PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
UIKit.UIMenuController menuController
PTAnnot annotation
System.nuint pageNumber
Returns
Type Description
System.Boolean

ShowDisableSnappingMenuIfSnappingHasOccurred()

Declaration
public virtual void ShowDisableSnappingMenuIfSnappingHasOccurred()

ShowSelectionMenu(CGRect)

Declaration
public virtual void ShowSelectionMenu(CGRect targetScreenRect)
Parameters
Type Name Description
CoreGraphics.CGRect targetScreenRect

ShowSelectionMenu(CGRect, Boolean)

Declaration
public virtual void ShowSelectionMenu(CGRect targetScreenRect, bool animated)
Parameters
Type Name Description
CoreGraphics.CGRect targetScreenRect
System.Boolean animated

TouchesShouldBegin(PTPDFViewCtrl, NSSet<UITouch>, UIEvent, UIView)

Declaration
public virtual bool TouchesShouldBegin(PTPDFViewCtrl pdfViewCtrl, NSSet<UITouch> touches, UIEvent event, UIView view)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
Foundation.NSSet<UIKit.UITouch> touches
UIKit.UIEvent event
UIKit.UIView view
Returns
Type Description
System.Boolean

TouchesShouldCancelInContentView(PTPDFViewCtrl, UIView)

Declaration
public virtual bool TouchesShouldCancelInContentView(PTPDFViewCtrl pdfViewCtrl, UIView view)
Parameters
Type Name Description
PTPDFViewCtrl pdfViewCtrl
UIKit.UIView view
Returns
Type Description
System.Boolean

WillCopyReturnedText(String, UIPasteboard)

Declaration
public virtual string WillCopyReturnedText(string selectedText, UIPasteboard pasteboard)
Parameters
Type Name Description
System.String selectedText
UIKit.UIPasteboard pasteboard
Returns
Type Description
System.String

WillFlattenAnnotation(PTAnnot, nuint)

Declaration
public virtual void WillFlattenAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

WillModifyAnnotation(PTAnnot, nuint)

Declaration
public virtual void WillModifyAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

WillRemoveAnnotation(PTAnnot, nuint)

Declaration
public virtual void WillRemoveAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

WillSelectAnnotation(PTAnnot, nuint)

Declaration
public virtual void WillSelectAnnotation(PTAnnot annotation, nuint pageNumber)
Parameters
Type Name Description
PTAnnot annotation
System.nuint pageNumber

Implements

IPTNoteEditControllerDelegate
IPTOverridable
IPTToolSwitching
IPTPDFViewCtrlToolDelegate
ObjCRuntime.INativeObject
System.IDisposable
UIKit.IUIAdaptivePresentationControllerDelegate
UIKit.IUIGestureRecognizerDelegate
UIKit.IUIPopoverPresentationControllerDelegate
Back to top Generated by DocFX