ListView Constants

The following table shows the ListView constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
lvwIcon 0 Icon (default). Each ListItem object is represented by a full-sized (standard) icon and a text label.
lvwSmallIcon 1 SmallIcon. Each ListItem object is represented by a small icon and a text label that appears to the right of the icon. The items appear horizontally.
lvwList 2 List. Each ListItem object is represented by a small icon and a text label that appears to the right of the icon. The ListItem objects are arranged vertically, each on its own line with information arranged in columns.
lvwReport 3 Report. Each ListItem object is displayed with its small icon and text labels. You can provide additional information about each ListItem object in a subitem. The icons, text labels, and information appear in columns with the leftmost column containing the small icon, followed by the text label. Additional columns display the text for each of the item's subitems.

The following table shows the ListColumnAlignment constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
lvwColumnLeft 0 Left (default). Text is left aligned.
lvwColumnRight 1 Right. Text is right aligned.
lvwColumnCenter 2 Center. Text is centered.

The following table shows the ListLabelEdit constants you can be use anywhere in your code in place of actual values.

Constant
Value
Description
lvwAutomatic 0 Automatic (default). The BeforelabelEdit event is generated when a user clicks the label of a selected node.
lvwManual 1 Manual. The BeforelabelEdit event is generated only when the StartLabelEdit method is invoked.

The following table shows the ListSortOrder constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
lvwAscending 0 Ascending order (default). Sorts from the beginning of the alphabet (from A through Z) or the earliest date. Numbers are sorted as strings, with the first digit determining the initial position in the sort and subsequent digits determining sub-sorting.
lvwDescending 1 Descending order. Sorts from the end of the alphabet (from Z through A) or the latest date. Numbers are sorted as strings, with the first digit determining the initial position in the sort and subsequent digits determining sub-sorting.

The following table shows the ListFindItemWhere constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
lvwText 0 Text (default). Matches the string with the Text property of a ListItem object.
lvwSubItem 1 SubItem. Matches the string with any string of the SubItems property of a ListItem object.

The following table shows the ListFindItemHow constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
lvwWholeWord 0 Whole word (Default). Sets the search so that a match occurs if the item's Text property begins with the whole word being searched for. Ignored if the criteria is not text.
lvwPartial 1 Partial. Sets the search so that a match occurs if the item's Text property begins with the string being searched for. Ignored if the criteria is not text.