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 (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); }
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); }
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)); }