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

            do
            {
                empty = "Cell" + num.ToString(CultureInfo.InvariantCulture);
                num++;
            }while (this.FindByName(empty) != null && num < 10000);
            cell.Name = empty;
        }
        public LegendCell CreateNewCell()
        {
            LegendCell legendCell = new LegendCell();

            legendCell.CellType          = (LegendCellType)((this.ColumnType == LegendCellColumnType.SeriesSymbol) ? 1 : 0);
            legendCell.Text              = this.Text;
            legendCell.ToolTip           = this.ToolTip;
            legendCell.Href              = this.Href;
            legendCell.MapAreaAttributes = this.MapAreaAttributes;
            legendCell.SeriesSymbolSize  = this.SeriesSymbolSize;
            legendCell.Alignment         = this.Alignment;
            legendCell.Margins           = new Margins(this.Margins.Top, this.Margins.Bottom, this.Margins.Left, this.Margins.Right);
            return(legendCell);
        }
예제 #4
0
        public LegendCell FindByName(string name)
        {
            LegendCell result = null;
            int        num    = 0;

            while (num < base.List.Count)
            {
                if (string.Compare(this[num].Name, name, false, CultureInfo.CurrentCulture) != 0)
                {
                    num++;
                    continue;
                }
                result = this[num];
                break;
            }
            return(result);
        }
예제 #5
0
 public int IndexOf(LegendCell cell)
 {
     return(base.List.IndexOf(cell));
 }
예제 #6
0
 public bool Contains(LegendCell value)
 {
     return(base.List.Contains(value));
 }
예제 #7
0
 public void Insert(int index, LegendCell cell)
 {
     base.List.Insert(index, cell);
 }
예제 #8
0
 public int Add(LegendCell cell)
 {
     return(base.List.Add(cell));
 }