Contents

setRect(_:forAnnotationKey:)

Sets a rectangle value in the annotation’s dictionary.

Declaration

func setRect(_ value: CGRect, forAnnotationKey key: PDFAnnotationKey) -> Bool
func setRect(_ value: NSRect, forAnnotationKey key: PDFAnnotationKey) -> Bool

Parameters

  • value:

    The rectangle value to set in the annotation’s dictionary.

  • key:

    A Pdfannotationkey or appropriate string from the Adobe PDF Specification.

Return Value

true if the value sets successfully; otherwise, false.

See Also

Modifying Annotation Attributes