System.Windows.Forms.ListView.SelectedListViewItemCollection.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
			public void Clear ()
			{
				owner.SelectedIndices.Clear ();
			}

Usage Example

Example #1
0
 void SelectListViewSfxItem(ListViewItem item)
 {
     #if false
     ListView.SelectedListViewItemCollection coll = new ListView.SelectedListViewItemCollection(listViewSfx);
     coll.Clear();
     item.Selected = true;
     #else
     //Rectangle rc = listViewSfx.GetItemRect(item.Index);
     //Point pt = new Point(rc.Left + (rc.Right - rc.Left) / 2, rc.Top + (rc.Bottom - rc.Top) / 2);
     //uint wp = 0;
     //uint lp = (uint)((ushort)pt.X + (uint)(pt.Y << 16));
     //PostMessageW(listViewSfx.Handle, 0x201, wp, lp);
     #endif
 }