PTTextMarkupEditTool

@interface PTTextMarkupEditTool : PTTextSelectTool

Tool for editing existing text markup annotations, such as highlights, underlines, etc. In addition to changing basic properties like colour and opacity, it can change the annotation’s size, and it’s type (e.g. turn a highlight into an underline).

  • Selects the specified text markup annotation.

    Declaration

    Objective-C

    - (BOOL)selectTextMarkupAnnotation:(nonnull PTAnnot *)annotation
                          onPageNumber:(unsigned int)pageNumber;

    Swift

    func selectTextMarkupAnnotation(_ annotation: PTAnnot, onPageNumber pageNumber: UInt32) -> Bool

    Parameters

    annotation

    the annotation to select

    pageNumber

    the page number of the annotation

    Return Value

    YES if the annotation was selected, NO otherwise.