ListView_ColumnGetAlignment()

Examples


The ListView_ColumnGetAlignment() function retrieves the alignment of the specified column of a list view field.

Syntax

ListView_ColumnGetAlignment(list_view_field, column_index)

Parameters

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.


Return value

An integer value corresponding to one of the following constants:

[spacer]

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.



Documentation Feedback