DesktopListBox.ColumnAlignmentOffsetAt

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aDesktopListBox.ColumnAlignmentOffsetAt(ColumnNumber As Integer) = newIntegerValue
or
IntegerValue = aDesktopListBox.ColumnAlignmentOffsetAt(ColumnNumber As Integer)

New in 2021r3

Supported for all project types and targets.

Modifies the alignment point and is especially useful for decimal alignment. The first column is numbered zero.

Notes

The value is the distance in points from what is specified for the column alignment.

For right alignment, a negative value moves the decimal separator to the left, i.e., into the body of the column. See the example in the Notes subsection "Decimal Alignment."

ListBox columns are zero-based.

Example

This code sets the offset in a right-aligned column by 10 points.

Me.ColumnAlignmentOffsetAt(2) = -10