Пример #1
0
 public void Remove(ContainerListViewItem item)
 {
     item.MouseDown -= new MouseEventHandler(OnMouseDown);
     List.Remove(item);
 }
Пример #2
0
 public int IndexOf(ContainerListViewItem item)
 {
     return List.IndexOf(item);
 }
Пример #3
0
 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]);
         }
     }
 }
Пример #4
0
 public int Add(ContainerListViewItem item)
 {
     item.MouseDown += new MouseEventHandler(OnMouseDown);
     return item.Index = List.Add(item);
 }
Пример #5
0
 public int this[ContainerListViewItem item]
 {
     get { return List.IndexOf(item); }
 }
Пример #6
0
        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;
        }