PTHighlightAnnot

@interface PTHighlightAnnot : PTTextMarkup

A HighlightAnnot annotation covers a word or a group of contiguous words with partially transparent color.

  • Creates a new HighlightAnnot annotation in the specified document.

    Declaration

    Objective-C

    + (PTHighlightAnnot *)Create:(PTSDFDoc *)doc pos:(PTPDFRect *)pos;

    Swift

    class func create(_ doc: PTSDFDoc!, pos: PTPDFRect!) -> PTHighlightAnnot!

    Parameters

    doc

    A document to which the HighlightAnnot annotation is added.

    pos

    A rectangle specifying the HighlightAnnot annotation’s bounds in default user space units.

    Return Value

    A newly created blank HighlightAnnot annotation.

  • Undocumented

    Declaration

    Objective-C

    + (PTHighlightAnnot*)CreateAnnot: (PTSDFDoc*)doc pos:  (PTPDFRect*)pos;

    Swift

    class func createAnnot(_ doc: PTSDFDoc!, pos: PTPDFRect!) -> PTHighlightAnnot!
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithD:(PTObj *)d;

    Swift

    init!(d: PTObj!)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithAnn: (PTAnnot*)ann;

    Swift

    init!(ann: PTAnnot!)