Example #1
0
 public void Remove(XPListViewGroup value)
 {
     ListViewAPI.RemoveListViewGroup(_owner, value.GroupIndex);
     if (GroupRemoved != null)
     {
         GroupRemoved(this, new ListViewGroupEventArgs(value));
     }
     List.Remove(value);
 }
Example #2
0
 public int Add(XPListViewGroup value)
 {
     ListViewAPI.AddListViewGroup(_owner, value.GroupText, value.GroupIndex);
     if (GroupAdded != null)
     {
         GroupAdded(this, new ListViewGroupEventArgs(value));
     }
     return(List.Add(value));
 }
Example #3
0
        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));
        }
Example #4
0
 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));
 }
Example #5
0
 public ListViewGroupEventArgs(XPListViewGroup item)
 {
     mItem = item;
 }
Example #6
0
 public bool Contains(XPListViewGroup value)
 {
     return(List.Contains(value));
 }
Example #7
0
 public void Insert(int index, XPListViewGroup value)
 {
     List.Insert(index, value);
 }
Example #8
0
 public int IndexOf(XPListViewGroup value)
 {
     return(List.IndexOf(value));
 }