![]() ![]() | ||
As discussed in the In Depth section of this chapter, list views display lists of items, much like the right pane in the Windows Explorer. List views are supported by the ListView class, which has this class hierarchy:
Object MarshalByRefObject Component Control ListView
You can find the notable public properties of ListView objects in Table 10.8, the notable public methods in Table 10.9, and the notable public events in Table 10.10. Note that I'm omitting those properties, methods, and events ListView objects inherit from the Control class—you'll find all that in Tables 5.1, 5.2, and 5.3, Chapter 5.
Method |
Means |
---|---|
ArrangeIcons |
Arranges the displayed items in Large Icon or Small Icon view. |
BeginUpdate |
Stops the list view from redrawing. |
Clear |
Removes all items from the list view. |
EndUpdate |
Allows redrawing of the list view. |
EnsureVisible |
Makes sure that an item is visible. |
GetItemAt |
Gets the item corresponding to the given X,Y coordinate. |
Event |
Means |
---|---|
AfterLabelEdit |
Occurs when a label has been edited. |
BeforeLabelEdit |
Occurs before a label is changed. |
ColumnClick |
Occurs when a column is clicked. |
ItemActivate |
Occurs when an item is activated. |
ItemCheck |
Occurs when an item is checked. |
SelectedIndexChanged |
Occurs when the selected index changes. |
![]() ![]() | ||