iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCITextAnnotationBase
@interface SCITextAnnotationBase : SCIAnchorPointAnnotation
Defines a abstarct base class for annotation which contains text.
-
Defines the string text.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *text;
Swift
var text: String? { get set }
-
Defines the attributed text.
Warning
If set - current annotation instance will ignore thetext
property.Declaration
Objective-C
@property (nonatomic, copy, nullable) NSAttributedString *attributedText;
Swift
@NSCopying var attributedText: NSAttributedString? { get set }
-
Defines the font style for text.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) SCIFontStyle *fontStyle;
Swift
var fontStyle: SCIFontStyle { get set }
-
Defines the text alignment.
Declaration
Objective-C
@property (nonatomic) SCIAlignment alignment;
Swift
var alignment: SCIAlignment { get set }
-
The default spacing used when laying out internal text.
Note
Sizes are inPoints
.Declaration
Objective-C
@property (nonatomic) UIEdgeInsets padding;
Swift
var padding: UIEdgeInsets { get set }
-
Defines the value indicating whether text can be edited on this container.
Declaration
Objective-C
@property (nonatomic) BOOL canEditText;
Swift
var canEditText: Bool { get set }
-
Gets or sets the rotation angle for this text in degrees.
Declaration
Objective-C
@property (nonatomic) float rotationAngle;
Swift
var rotationAngle: Float { get set }