iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCISolidPenStyle

@interface SCISolidPenStyle : SCIPenStyle

Defines a style class for lines with solid color which is used to draw 2D lines on the ISCIRenderSurface

  • Provides default instance of SCISolidPenStyle.

    Declaration

    Objective-C

    @property (readonly, nonatomic, class)
        SCISolidPenStyle *_Nonnull defaultPenStyle;

    Swift

    class var `default`: SCISolidPenStyle { get }
  • Creates a new SCIPenStyle instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithColorCode:(unsigned int)colorCode
                                    thickness:(float)thickness;

    Swift

    convenience init(colorCode: UInt32, thickness: Float)

    Parameters

    colorCode

    The stroke ARGB color code.

    thickness

    The stroke thickness in pixels.

  • Creates a new SCIPenStyle instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithColor:(nonnull UIColor *)color
                                thickness:(float)thickness;

    Swift

    convenience init(color: UIColor, thickness: Float)

    Parameters

    color

    The stroke ARGB color.

    thickness

    The stroke thickness in pixels.

  • Creates a new SCIPenStyle instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithColor:(nonnull UIColor *)color
                                thickness:(float)thickness
                          strokeDashArray:
                              (nullable NSArray<NSNumber *> *)strokeDashArray;

    Swift

    convenience init(color: UIColor, thickness: Float, strokeDashArray: [NSNumber]?)

    Parameters

    color

    The stroke ARGB color.

    thickness

    The stroke thickness in pixels.

    strokeDashArray

    The stroke dash pattern.

  • Creates a new SCIPenStyle instance.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithColorCode:(unsigned int)colorCode
                                    thickness:(float)thickness
                              strokeDashArray:
                                  (nullable NSArray<NSNumber *> *)strokeDashArray
                                 antiAliasing:(BOOL)antiAliasing;

    Swift

    init(colorCode: UInt32, thickness: Float, strokeDashArray: [NSNumber]?, antiAliasing: Bool)

    Parameters

    colorCode

    The stroke ARGB color code.

    thickness

    The stroke thickness in pixels.

    antiAliasing

    The value indicating whether the pen should use antialiasing or not.

    strokeDashArray

    The stroke dash pattern.