Represents the collection of checked items in a list view control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
A stores the checked items in a ListView control. Items can only be checked if the CheckBoxes property of the ListView control is set to true. The items stored in the are items contained in the ListView.ListViewItemCollection. The ListView.ListViewItemCollection class stores all items displayed in the ListView control.
Checked state in the ListView
Based on the ListView.ListViewItemCollection example in the previous table, the following table demonstrates how the would appear.
Checked item in ListViewItemCollection
You can use the properties and methods of this class to perform a variety of tasks with the collection. The Contains method enables you to determine whether an item from the ListView.ListViewItemCollection class is a member of the . Once you know that the item is in the collection, you can use the IndexOf method to determine the position of the item in the .
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.