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