The ListView_ColumnGetAlignment() function retrieves the alignment of the specified column of a list view field.
ListView_ColumnGetAlignment(list_view_field, column_index)
• list_view_field – The list view field containing the specified column.
• column_index – An integer specifying the index of the column whose alignment is being retrieved. The value 1 indicates the first column that was added to the list view field.
Dragging a column to a different position in the list view does not affect the column index. |
An integer value corresponding to one of the following constants:
Constant |
Description |
---|---|
LV_ALIGN_LEFT |
Items will be left-aligned. |
LV_ALIGN_CENTER |
Items will be center-aligned. |
LV_ALIGN_RIGHT |
Items will be right-aligned. |