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

ISCIStyle

@protocol ISCIStyle <NSObject>

Defines the interface for style object throughout SciChart.

  • Applies this style to specified styleable object.

    Declaration

    Objective-C

    - (void)tryApplyStyleTo:(id)styleableObject;

    Swift

    func tryApply(to styleableObject: Any!)

    Parameters

    styleableObject

    The target styleable object.

  • Discards this style on specified styleable object.

    Declaration

    Objective-C

    - (void)tryDiscardStyleFrom:(id)styleableObject;

    Swift

    func tryDiscardStyle(from styleableObject: Any!)

    Parameters

    styleableObject

    The target styleable object.

  • Gets the target styleable object type.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) Class styleableObjectType;

    Swift

    var styleableObjectType: AnyClass! { get }