Returns or sets the alignment of data in a column. Not available at design time.
object.ColAlignment( number ) [= value ]
The ColAlignment property syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
number | Long. The number of the column in the Grid control, or -1 to set all columns at once. |
value | Integer or constant specifying the alignment of data in a column, as described in Settings. |
The settings for value are:
Value | Description |
---|---|
0 | Left Top |
1 | Left Center (default for strings) |
2 | Left Bottom |
3 | Center Top |
4 | Center Center |
5 | Center Bottom |
6 | Right Top |
7 | Right Center (default for numbers) |
8 | Right Bottom |
9 | General: Left Center for strings, Right Center for numbers |
Any column can have an alignment that is different from other columns. This property affects all cells in the specified column, including those in fixed rows.
To set individual cell alignments, use the CellAlignment property.