ChartDirector Ver 4.1 (C++ Edition)

SEO India | Search Engine Optimization Company India

Alignment Specification


In many ChartDirector objects, you may specify the alignment of the object's content relative to its boundary. For example, for a TextBox object, you may specify the text's alignment relative to the box boundary by using TextBox.setAlignment.

The ChartDirector API defines several constants for the alignment options.

Constant Value Description
BottomLeft 1 The leftmost point on the bottom line.
BottomCenter 2 The center point on the bottom line.
BottomRight 3 The rightmost point on the bottom line.
Left 4 The leftmost point on the middle horizontal line.
Center 5 The center point on the middle horizontal line.
Right 6 The rightmost point on the middle horizontal line.
TopLeft 7 The leftmost point on the top line.
TopCenter 8 The center point on the top line.
TopRight 9 The rightmost point on the top line.
Bottom 2 The center point on the bottom line. Same as BottomCenter.
Top 8 The center point on the top line. Same as TopCenter.
TopLeft2 10 An alternative top-left position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, TopLeft2 refers to refers to the left of the top side, while TopLeft refers to the top of the left side. The reverse applies for a horizontal axis.
TopRight2 11 An alternative top-right position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, TopRight2 refers to refers to the right of the top side, while TopRight refers to the top of the right side. The reverse applies for a horizontal axis.
BottomLeft2 12 An alternative bottom-left position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, BottomLeft2 refers to refers to the left of the bottom side, while BottomLeft refers to the bottom of the left side. The reverse applies for a horizontal axis.
BottomRight2 13 An alternative bottom-right position used in Axis.setTitlePos for axis title positioning only. For a vertical axis, BottomRight2 refers to refers to the right of the bottom side, while BottomRight refers to the bottom of the right side. The reverse applies for a horizontal axis.