public void Remove(LegendCell cell)
 {
     if (cell != null)
     {
         base.List.Remove(cell);
     }
 }
        private void AssignUniqueName(LegendCell cell)
        {
            string empty = string.Empty;
            int    num   = 1;

            do
            {
                empty = "Cell" + num.ToString(CultureInfo.InvariantCulture);
                num++;
            }while (FindByName(empty) != null && num < 10000);
            cell.Name = empty;
        }
        public LegendCell FindByName(string name)
        {
            LegendCell result = null;

            for (int i = 0; i < base.List.Count; i++)
            {
                if (string.Compare(this[i].Name, name, ignoreCase: false, CultureInfo.CurrentCulture) == 0)
                {
                    result = this[i];
                    break;
                }
            }
            return(result);
        }
 public int IndexOf(LegendCell cell)
 {
     return(base.List.IndexOf(cell));
 }
 public bool Contains(LegendCell value)
 {
     return(base.List.Contains(value));
 }
 public void Insert(int index, LegendCell cell)
 {
     base.List.Insert(index, cell);
 }
 public int Add(LegendCell cell)
 {
     return(base.List.Add(cell));
 }