Skip to main content

TdxAlignment Enum

Enumerates visual element alignments in relation to the base element position.

Declaration

TdxAlignment = (
    Default,
    Near,
    Center,
    Far
);

Members

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 | bdRightToLeftReadingOnly
The left-to-right (default) application layout: the “near” border corresponds to the left border of the parent visual element.
bdRightToLeft
The 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 | bdRightToLeftReadingOnly
The left-to-right (default) application layout: the “far” border corresponds to the right border of the parent visual element.
bdRightToLeft
The 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.

Remarks

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.LabelAlignment
Specifies alignment of value labels on an axis.
TdxChartSimpleSeriesTotalLabel.Position
Specifies the base total label position in relation to a simple series.
TdxChartVisualElementTitle.Alignment
Specifies title alignment.
TdxChartTitleCollectionItem.Alignment
Specifies title alignment.
TdxChartCustomLabels.TextAlignment
Specifies horizontal value label alignment.
See Also