PTPDFAnnotationBorder
@interface PTPDFAnnotationBorder : NSObject <PTPDFAnnotationBorderAppearance>
A representation of the border around a PDF annotation.
-
Initializes a
PTPDFAnnotationBorderinstance.Declaration
Objective-C
- (nonnull instancetype)init;Swift
init()Return Value
An initialized
PTPDFAnnotationBorderinstance.
-
The width of the border.
Note
The default value of this property is1.0.Declaration
Objective-C
@property (nonatomic) CGFloat width;Swift
var width: CGFloat { get set } -
The horizontal corner radius of the border.
Note
The default value of this property is0.0.Declaration
Objective-C
@property (nonatomic) CGFloat horizontalCornerRadius;Swift
var horizontalCornerRadius: CGFloat { get set } -
The vertical corner radius of the border.
Note
The default value of this property is0.0.Declaration
Objective-C
@property (nonatomic) CGFloat verticalCornerRadius;Swift
var verticalCornerRadius: CGFloat { get set } -
The alternating pattern of dashes and gaps used in drawing the border.
Note
The default value of this property isnil.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<NSNumber *> *dashPattern;Swift
var dashPattern: [NSNumber]? { get set }
-
Compares this
PTPDFAnnotationBorderinstance to another instance for equality.Declaration
Objective-C
- (BOOL)isEqualToAnnotationBorder: (nonnull PTPDFAnnotationBorder *)annotationBorder;Swift
func isEqual(to annotationBorder: PTPDFAnnotationBorder) -> BoolParameters
annotationBorderThe other instance to compare against
self.Return Value
YESif the two instances are equal,NOotherwise.
PTPDFAnnotationBorder Class Reference