ListBox.ColumnAlignment
From Xojo Documentation
This item was deprecated in version 2019r2. Please use ListBox.ColumnAlignmentAt as a replacement. |
Property (As Integer )
aListBox.ColumnAlignment(ColumnNumber as Integer) = newIntegerValue
or
IntegerValue = aListBox.ColumnAlignment(ColumnNumber as Integer)
Supported for all project types and targets.
or
IntegerValue = aListBox.ColumnAlignment(ColumnNumber as Integer)
Supported for all project types and targets.
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 |
Examples
For example:
ListBox1.ColumnAlignment(1) = ListBox.AlignRight
Decimal aligns the decimal separator to the right edge of the column. You need to use ColumnAlignmentOffset to move the alignment point in the column.