PTPDFAnnotationBorder
@interface PTPDFAnnotationBorder : NSObject <PTPDFAnnotationBorderAppearance>
A representation of the border around a PDF annotation.
-
Initializes a
PTPDFAnnotationBorder
instance.Declaration
Objective-C
- (nonnull instancetype)init;
Swift
init()
Return Value
An initialized
PTPDFAnnotationBorder
instance.
-
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
PTPDFAnnotationBorder
instance to another instance for equality.Declaration
Objective-C
- (BOOL)isEqualToAnnotationBorder: (nonnull PTPDFAnnotationBorder *)annotationBorder;
Swift
func isEqual(to annotationBorder: PTPDFAnnotationBorder) -> Bool
Parameters
annotationBorder
The other instance to compare against
self
.Return Value
YES
if the two instances are equal,NO
otherwise.