public void AddRange(ContainerSubListViewItem[] items) { lock(List.SyncRoot) { for (int i=0; i<items.Length; i++) { OnItemsChanged(new ItemsChangedEventArgs(List.Add(items[i]))); } } }
public int Add(ContainerSubListViewItem item) { int index = List.Add(item); OnItemsChanged(new ItemsChangedEventArgs(index)); return index; }
public ContainerSubListViewItem Add(string str) { ContainerSubListViewItem slvi = new ContainerSubListViewItem(str); lock(List.SyncRoot) OnItemsChanged(new ItemsChangedEventArgs(List.Add(slvi))); return slvi; }
public object Clone() { ContainerSubListViewItem slvi = new ContainerSubListViewItem(); slvi.ItemControl = null; slvi.Text = text; return slvi; }