title: listview, checkbox, c#
body: <p>I have ListView which shows images from an ImageList. Now wanted to get index of all checked images in ListView.</p>
  
  <pre><code>List&lt;int&gt; list = new List&lt;int&gt;(); // in list index of all checked images on clicking button should be saved.
  
  private void button2_Click(object sender, EventArgs e)
  {
      ListView.CheckedListViewItemCollection checkedItems = lstview1.CheckedItems;
  
      foreach (ListViewItem item in checkedItems)
      {
        list.add[// How can i get index of checked item ];
      }
  }
  </code></pre>