ListBox.CellAlignment
From Xojo Documentation
This item was deprecated in version 2019r2. Please use ListBox.CellAlignmentAt as a replacement. |
Property (As Integer )
aListBox.CellAlignment(Row as Integer, Column as Integer) = newIntegerValue
or
IntegerValue = aListBox.CellAlignment(Row as Integer, Column as Integer)
Supported for all project types and targets.
or
IntegerValue = aListBox.CellAlignment(Row as Integer, Column as Integer)
Supported for all project types and targets.
Aligns the specified cell. Row and Column are zero-based.
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 |
Example
Decimal aligns the decimal separator to the right edge of the cell. You need to use CellAlignmentOffset or ColumnAlignmentOffset to move the data into the column.
Listbox1.CellAlignment(1,1) = ListBox.AlignRight