public void Remove(XPListViewItem item) { if (ItemRemoved != null) { ItemRemoved(this, new ListViewItemEventArgs(item)); } base.Remove(item); }
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, System.Type destinationType) { if (destinationType == typeof(InstanceDescriptor)) { Type[] signature = { typeof(XPListViewItem.ListViewSubItem[]), typeof(int), typeof(int) }; XPListViewItem itm = ((XPListViewItem)value); object[] args = { itm.SubItemsArray, itm.ImageIndex, itm.GroupIndex }; return(new InstanceDescriptor(typeof(XPListViewItem).GetConstructor(signature), args, false)); } return(base.ConvertTo(context, culture, value, destinationType)); }
public XPListViewItem Add(XPListViewItem item) { XPListViewItem itm; itm = ((XPListViewItem)base.Add(item)); ListViewAPI.AddItemToGroup(((XPListView)itm.ListView), itm.Index, itm.GroupIndex); if (ItemAdded != null) { ItemAdded(this, new ListViewItemEventArgs(itm)); } return(itm); }
public ListViewItemEventArgs(XPListViewItem item) { mItem = item; }
public XPListViewItem Insert(int index, XPListViewItem item) { return((XPListViewItem)base.Insert(index, item)); }
public int IndexOf(XPListViewItem item) { return(base.IndexOf(item)); }
public bool Contains(XPListViewItem item) { return(base.Contains(item)); }
public XPListViewItem Add(string text, int imageIndex, int groupindex) { XPListViewItem itm = new XPListViewItem(text, imageIndex, groupindex); return(Add(itm)); }
public new XPListViewItem Add(string text) { XPListViewItem itm = new XPListViewItem(text); return(Add(itm)); }