PSPDFAnnotationStyle


@interface PSPDFAnnotationStyle : PSPDFModel

Defines an annotation style.

  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFAnnotationStyle : PSPDFModel
  • Undocumented

    Declaration

    Objective-C

    
    @interface PSPDFAnnotationStyle : PSPDFModel
  • Designated Initializer with the name of the style.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithName:(nonnull NSString *)styleName;

    Swift

    init(name styleName: String)
  • The name of the annotation style.

    Declaration

    Objective-C

    @property (readwrite, copy, atomic) NSString *_Nonnull styleName;

    Swift

    var styleName: String { get set }
  • Key/Value pairs of style settings that should be applied to the object.

    Declaration

    Objective-C

    @property (readwrite, copy, atomic, nullable)
        NSDictionary<NSString *, id> *styleDictionary;

    Swift

    var styleDictionary: [String : Any]? { get set }
  • Populates the styleDictionary. use nil for style to remove a value

    Declaration

    Objective-C

    - (void)setStyle:(nullable id)style forKey:(nonnull NSString *)key;

    Swift

    func setStyle(_ style: Any?, forKey key: String)
  • Applies all applicable style attribute to the annotation. Matching is done via property name comparison.

    Declaration

    Objective-C

    - (void)applyStyleToAnnotation:(nonnull PSPDFAnnotation *)annotation;

    Swift

    func apply(to annotation: PSPDFAnnotation)