iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
SCIAlignment
enum SCIAlignment : NSUInteger {}
Constants used for placing an object within a potentially larger container.
Note
Approach is based on Android’s Gravity constants.-
Place the object to the left of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Left = (AxisStart | AxisSpecified) << XAxisShiftSwift
static var left: SCIAlignment { get } -
Place the object to the right of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Right = (AxisEnd | AxisSpecified) << XAxisShiftSwift
static var right: SCIAlignment { get } -
Place the object to the top of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Top = (AxisStart | AxisSpecified) << YAxisShiftSwift
static var top: SCIAlignment { get } -
Place the object to the bottom of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Bottom = (AxisEnd | AxisSpecified) << YAxisShiftSwift
static var bottom: SCIAlignment { get } -
Place the object in the horizontal center of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_CenterHorizontal = AxisSpecified << XAxisShiftSwift
static var centerHorizontal: SCIAlignment { get } -
Grow the horizontal size of the object if needed so it completely fills it’s container.
Declaration
Objective-C
SCIAlignment_FillHorizontal = SCIAlignment_Left | SCIAlignment_RightSwift
static var fillHorizontal: SCIAlignment { get } -
Place the object in the vertical center of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_CenterVertical = AxisSpecified << YAxisShiftSwift
static var centerVertical: SCIAlignment { get } -
Grow the vertical size of the object if needed so it completely fills it’s container.
Declaration
Objective-C
SCIAlignment_FillVertical = SCIAlignment_Top | SCIAlignment_BottomSwift
static var fillVertical: SCIAlignment { get } -
Place the object in the center of its container in both the vertical and horizontal axis, not changing its size.
Declaration
Objective-C
SCIAlignment_Center = SCIAlignment_CenterVertical | SCIAlignment_CenterHorizontalSwift
static var center: SCIAlignment { get } -
Grow the horizontal and vertical size of the object if needed so it completely fills it’s container.
Declaration
Objective-C
SCIAlignment_Fill = SCIAlignment_FillVertical | SCIAlignment_FillHorizontalSwift
static var fill: SCIAlignment { get }
View on GitHub