iOS Charting Documentation - SciChart iOS Charts SDK v3.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, readwrite) NSString *text;

    Swift

    var text: String! { get set }
  • Defines the attributed text.

    Warning

    If set - current annotation instance will ignore the text property.

    Declaration

    Objective-C

    @property (nonatomic, copy, readwrite) NSAttributedString *attributedText;

    Swift

    @NSCopying var attributedText: NSAttributedString! { get set }
  • Defines the font style for text.

    Declaration

    Objective-C

    @property (nonatomic, strong, readwrite) SCIFontStyle *fontStyle;

    Swift

    var fontStyle: SCIFontStyle! { get set }
  • Defines the text alignment.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        SCIAlignment alignment;

    Swift

    var alignment: SCIAlignment { get set }
  • The default spacing used when laying out internal text.

    Note

    Sizes are in Points.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) 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, assign, unsafe_unretained, readwrite) BOOL canEditText;

    Swift

    var canEditText: Bool { get set }
  • Gets or sets the rotation angle for this text in degrees.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) float rotationAngle;

    Swift

    var rotationAngle: Float { get set }