<div class="meta" robots="noindex">

</div>

# ListBox.ColumnAlignment

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.ColumnAlignmentAt<desktoplistbox.columnalignmentat>` as a replacement.

</div>

## Description

Aligns the specified column. The first column is numbered zero.

## Notes

You specify the alignment via ListBox class constants. They are:

| Class Constant | Description                            |
|----------------|----------------------------------------|
| AlignDefault   | Default alignment, same as column type |
| AlignLeft      | Left aligned                           |
| AlignCenter    | Center aligned                         |
| AlignRight     | Right aligned                          |
| AlignDecimal   | Decimal aligned                        |

## Sample code

For example:

``` xojo
ListBox1.ColumnAlignment(1) = ListBox.AlignRight
```

## Compatibility

All projects types on all supported operating systems.
