ListBox.ColumnAlignmentOffset

From Xojo Documentation

Revision as of 16:43, 17 June 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Property (As Integer )
aListBox.ColumnAlignmentOffset(ColumnNumber as Integer) = newIntegerValue
or
IntegerValue = aListBox.ColumnAlignmentOffset(ColumnNumber as Integer)

Supported for all project types and targets.

Modifies the alignment point and is especially useful for decimal alignment. n pixels from the what is specified for the column alignment. The first column is numbered zero.

Notes

The value is the distance in pixels 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 example sets the offset in a right-aligned column by 10 pixels.

Me.ColumnAlignmentOffset(2) = -10