align

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:

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.

Related concepts
Enumerations in EGL
Overview of EGL properties

Related reference
Formatting properties

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.