Skip to content

SubItemIndex Property

Description

Returns the index of the subitem associated with a ListViewColumnHeader object in a ListView control.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property SubItemIndex() As Long

Remarks

Subitems are arrays of strings representing the ListViewItem object's data when displayed in Report view. The first column header always has a SubItemIndex property set to 0 because the small icon and the ListViewItem object's text always appear in the first column and are considered ListItem objects rather than subitems. The number of column headers dictates the number of subitems. There is always exactly one more column header than there are subitems.

See Also

ListViewColumnHeader Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.