
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
-
Place the object to the right of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Right = (AxisEnd | AxisSpecified) << XAxisShift
-
Place the object to the top of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Top = (AxisStart | AxisSpecified) << YAxisShift
-
Place the object to the bottom of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_Bottom = (AxisEnd | AxisSpecified) << YAxisShift
-
Place the object in the horizontal center of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_CenterHorizontal = AxisSpecified << XAxisShift
-
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
-
Place the object in the vertical center of it’s container, not changing its size.
Declaration
Objective-C
SCIAlignment_CenterVertical = AxisSpecified << YAxisShift
-
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
-
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
-
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