예제 #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;
        }