public void Remove(ContainerListViewItem item) { item.MouseDown -= new MouseEventHandler(OnMouseDown); List.Remove(item); }
public int IndexOf(ContainerListViewItem item) { return List.IndexOf(item); }
public void AddRange(ContainerListViewItem[] items) { lock(List.SyncRoot) { for (int i=0; i<items.Length; i++) { items[i].MouseDown += new MouseEventHandler(OnMouseDown); items[i].Index = List.Add(items[i]); } } }
public int Add(ContainerListViewItem item) { item.MouseDown += new MouseEventHandler(OnMouseDown); return item.Index = List.Add(item); }
public int this[ContainerListViewItem item] { get { return List.IndexOf(item); } }
public object Clone() { ContainerListViewItem lvi = new ContainerListViewItem(); lvi.BackColor = backcolor; lvi.Focused = focused; lvi.Font = font; lvi.ForeColor = forecolor; lvi.ImageIndex = imageindex; lvi.Selected = selected; lvi.Tag = tag; lvi.Text = text; lvi.UseItemStyleForSubItems = styleall; return lvi; }