The items in a list view are objects of the ListViewItem class, and the collection of those items is stored in the list view's Items property. Here is the class hierarchy of the ListViewItem class:
Object ListViewItem
You can find the notable public properties of ListViewItem objects in Table 10.11, and the notable public methods in Table 10.12.
Property |
Means |
---|---|
Bounds |
Gets the bounding rectangle of an item, including its subitems. |
Checked |
True if the item is checked, False otherwise. |
Index |
Gets the index in the list view of the item. |
ListView |
Gets the list view that contains this item. |
Selected |
Gets/sets if the item is selected. |
SubItems |
Gets a collection of the subitems of this item. |
Text |
Gets the text for this item. |
Method |
Means |
---|---|
BeginEdit |
Begins the editing of the text in the item's label. |
EndEdit |
Ends the editing of the text in the item's label. |
EnsureVisible |
Makes sure that the item is visible. |