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

ISCILayoutable

@protocol ISCILayoutable <NSObject>

Defines interface for elements which can be placed by ISCILayoutManager.

  • Places this instance relative to parent SCIChartSurface.

    Declaration

    Objective-C

    - (void)layoutAreaWithLeft:(CGFloat)left
                           top:(CGFloat)top
                         right:(CGFloat)right
                        bottom:(CGFloat)bottom;

    Swift

    func layoutArea(withLeft left: CGFloat, top: CGFloat, right: CGFloat, bottom: CGFloat)

    Parameters

    left

    left position of area relative to parent SCIChartSurface.

    top

    top position of area relative to parent SCIChartSurface.

    right

    right position of area relative to parent SCIChartSurface.

    bottom

    bottom position of area relative to parent SCIChartSurface.

  • Gets CGRect with layout placement.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGRect layoutRect;

    Swift

    var layoutRect: CGRect { get }
  • Get the CGSize of layout placement rect.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize layoutSize;

    Swift

    var layoutSize: CGSize { get }