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

SCISolidPenStyle

@interface SCISolidPenStyle : SCIPenStyle

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

  • Deprecated

    SCISolidPenStyle.defaultPenStyle is deprecated. Please use SCIPenStyle.DEFAULT instead

    Provides default instance of SCISolidPenStyle.

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) __deprecated_msg("SCISolidPenStyle.defaultPenStyle is deprecated. Please " "use SCIPenStyle.DEFAULT instead") SCISolidPenStyle *defaultPenStyle;

    Swift

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

    Declaration

    Objective-C

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

    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;

    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;

    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;

    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.