vcl-cxgeometry-7a83d243.md
Enumerates visual element alignments in relation to the base element position.
TdxAlignment = (
Default,
Near,
Center,
Far
);
| Name | Description |
|---|---|
Default |
Default. This option indicates the default visual element alignment.
Different visual element types interpret the default alignment option differently. In most cases, the Default value corresponds to Center.
|
| Near |
A visual element is aligned to the near border of the parent visual element from the base position.
Horizontal Alignment
If the Near value specifies horizontal visual element alignment, the “near” border position depends on the control’s BiDiMode property value:
bdLeftToRight | bdRightToLeftNoAlign | bdRightToLeftReadingOnlyThe left-to-right (default) application layout: the “near” border corresponds to the left border of the parent visual element.bdRightToLeftThe right-to-left application layout: the “near” border corresponds to the right border of the parent visual element. |
| Center |
A visual element is centered at the base position horizontally or vertically.
|
| Far |
A visual element is aligned to the far border of the parent visual element from the base position:
Horizontal Alignment
If the Far value specifies horizontal visual element alignment, the “far” border position depends on the control’s BiDiMode property value:
bdLeftToRight | bdRightToLeftNoAlign | bdRightToLeftReadingOnlyThe left-to-right (default) application layout: the “far” border corresponds to the right border of the parent visual element.bdRightToLeftThe right-to-left application layout: the “far” border corresponds to the left border of the parent visual element.
Vertical Alignment
If the Far value specifies vertical visual element alignment, the “far” border position corresponds to the bottom border of the parent visual element.
|
Note
TdxAlignment is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxAlignment.Center (in Delphi) or TdxAlignment::Center (in C++Builder) to refer to the Center value in code.
The following public API members reference the TdxAlignment type:
TdxChartAxisTicks.LabelAlignmentSpecifies alignment of value labels on an axis.TdxChartSimpleSeriesTotalLabel.PositionSpecifies the base total label position in relation to a simple series.TdxChartVisualElementTitle.AlignmentSpecifies title alignment.TdxChartTitleCollectionItem.AlignmentSpecifies title alignment.TdxChartCustomLabels.TextAlignmentSpecifies horizontal value label alignment. See Also