iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIMultiPointLabelFormatParams

@interface SCIMultiPointLabelFormatParams : NSObject

Provides the context passed to a SCIMultiPointLabelFormatter when a label’s text is resolved.

  • Gets the annotation this label belongs to.

    Declaration

    Objective-C

    @property (nonatomic, weak, readonly, nullable) SCIMultiPointAnnotationBase *annotation;

    Swift

    weak var annotation: SCIMultiPointAnnotationBase? { get }
  • Gets the label being formatted.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCIMultiPointLabel *_Nonnull label;

    Swift

    var label: SCIMultiPointLabel { get }
  • Gets the index of this label in the annotation’s labels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger labelIndex;

    Swift

    var labelIndex: Int { get }
  • Gets the resolved anchor mode. An axis-anchored label reports Point or Segment here, depending on how its position is derived.

    Declaration

    Objective-C

    @property (nonatomic, readonly) SCIMultiPointLabelAnchorMode anchorMode;

    Swift

    var anchorMode: SCIMultiPointLabelAnchorMode { get }
  • Gets the anchor position in data values.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGPoint anchorValuePoint;

    Swift

    var anchorValuePoint: CGPoint { get }
  • Gets the anchor position in screen coordinates.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGPoint anchorPixelPoint;

    Swift

    var anchorPixelPoint: CGPoint { get }
  • Gets the direction of the anchor segment in data values.

    Note

    Not normalised. Always (1, 0) for a point-anchored label.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGPoint tangentValue;

    Swift

    var tangentValue: CGPoint { get }
  • Gets the direction of the anchor segment in screen coordinates.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGPoint tangentPixel;

    Swift

    var tangentPixel: CGPoint { get }
  • Gets all of the annotation’s base points, in data values.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<SCIComparablePoint *> *_Nonnull valuePoints;

    Swift

    var valuePoints: [SCIComparablePoint] { get }
  • Gets the label’s static text, or an empty string when it has none.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull defaultText;

    Swift

    var defaultText: String { get }