The align property
specifies the position of data in a variable field when the length of the
data is smaller than the length of the field.
Values are of the enumeration
alignKind:
- left (the default for character data)
- Place the data at the left of the field. Initial spaces are stripped and
placed at the end of the field.
- right (the default for numeric data)
- Place the data at the right of the field. Trailing spaces are stripped
and placed at the beginning of the field. This setting is required for numeric
data that has a decimal position or sign.
- center
- Place the data at the center of the field. Leading and trailing spaces
are stripped so that spacing is calculated based only on the other field content.
- none
- Do not justify the data. This setting is valid only for character data.
The property is available in DataItem parts and is meaningful for fields
that appear in the following contexts:
- Console forms
- Print forms
- Text forms
- Web pages
On output, character and numeric data are affected by this property. On
input, character data is affected by this property, but numeric data is always
right-justified.