public void Remove(XPListViewGroup value) { ListViewAPI.RemoveListViewGroup(_owner, value.GroupIndex); if (GroupRemoved != null) { GroupRemoved(this, new ListViewGroupEventArgs(value)); } List.Remove(value); }
public int Add(XPListViewGroup value) { ListViewAPI.AddListViewGroup(_owner, value.GroupText, value.GroupIndex); if (GroupAdded != null) { GroupAdded(this, new ListViewGroupEventArgs(value)); } return(List.Add(value)); }
public int Add(string text, int index) { XPListViewGroup itm = new XPListViewGroup(text, index); ListViewAPI.AddListViewGroup(_owner, text, index); if (GroupAdded != null) { GroupAdded(this, new ListViewGroupEventArgs(itm)); } return(List.Add(itm)); }
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, System.Type destinationType) { if (destinationType == typeof(InstanceDescriptor)) { Type[] signature = { typeof(string), typeof(int) }; XPListViewGroup itm = ((XPListViewGroup)value); object[] args = { itm.GroupText, itm.GroupIndex }; return(new InstanceDescriptor(typeof(XPListViewGroup).GetConstructor(signature), args, false)); } return(base.ConvertTo(context, culture, value, destinationType)); }
public ListViewGroupEventArgs(XPListViewGroup item) { mItem = item; }
public bool Contains(XPListViewGroup value) { return(List.Contains(value)); }
public void Insert(int index, XPListViewGroup value) { List.Insert(index, value); }
public int IndexOf(XPListViewGroup value) { return(List.IndexOf(value)); }