DataGrid REALbasic Plugin

DataGridCell.Alignment Property

To set or get the alignment of the cell.

Alignment as Integer {Read and Write}

Remarks

Accepted values:
0: Left Alignment
1: Centered
-1: Right Alignment
10: Left Align and truncate if needed
20: Inherit Alignment settings from Column

If you have TypeLib and REALbasic 5.5 or later then those constants can be assigned in REALbasic by using the following constants:

CellAlignment.Left
CellAlignment.Center
CellAlignment.Right
CellAlignment.Truncate
CellAlignment.InheritFromColumn

Note
Each platform may handle truncate in their own way, linux for example is not very smart at truncating.

See also CellAlignment constants.

See Also

DataGridCell Class