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) << XAxisShift
Swift
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) << XAxisShift
Swift
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) << YAxisShift
Swift
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) << YAxisShift
Swift
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 << XAxisShift
Swift
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_Right
Swift
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 << YAxisShift
Swift
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_Bottom
Swift
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_CenterHorizontal
Swift
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_FillHorizontal
Swift
static var fill: SCIAlignment { get }