PSPDFAnnotationStyle

Objective-C


@interface PSPDFAnnotationStyle : PSPDFModel <NSSecureCoding>

Swift

class AnnotationStyle : ModelObject, NSSecureCoding

Defines an annotation style.

  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • Unavailable

    Not the designated initializer

    Undocumented

    Declaration

    Objective-C

    PSPDF_EMPTY_INIT_UNAVAILABLE
  • 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 (copy) 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 (copy, nullable) NSDictionary<PSPDFAnnotationStyleKey, id> *styleDictionary;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    func setStyle(_ style: Any?, forKey key: AnnotationStyle.Key)
  • 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)