iOS Charting Documentation - SciChart iOS Charts SDK v3.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: Any!, top: Any!, right: Any!, bottom: Any!)

    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: Rect { get }
  • Get the CGSize of layout placement rect.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize layoutSize;

    Swift

    var layoutSize: Size { get }