Partilhar via


DynamicAlignment Property

Specifies the alignment of text and controls in a Column object. The alignment is re-evaluated at run time each time the Grid control is refreshed. Available at design time; read/write at run time.

Column.DynamicAlignment[ = cAlign]

Property Values

  • cAlign
    Specifies a character string expression that is re-evaluated at run time and results in one of the following values:
    Setting Description
    0 Middle Left. Aligns the text flush left and centered vertically.
    1 Middle Right. Aligns the text flush right and centered vertically.
    2 Middle Center. Aligns the text in the middle with equal spaces to the right and left and centered vertically.
    3 (Default) Automatic. Aligns text based on the data type of the control source. Numeric types (numeric, double, float, currency, integer) are right-aligned; controls with other data types are left-aligned.
    4 Top Left. Aligns the text flush left and at the top of the column.
    5 Top Right. Aligns the text flush right and at the top of the column.
    6 Top Center. Aligns the text in the middle with equal spaces to the right and left and at the top of the column.
    7 Bottom Left. Aligns the text flush left and at the bottom of the column.
    8 Bottom Right. Aligns the text flush right and at the bottom of the column.
    9 Bottom Center. Aligns the text in the middle with equal spaces to the right and left and at the bottom of the column.

See Also

Alignment Property

Applies To: Column