Exemplo n.º 1
0
 public void SetContainingLegend(Legend legend, LegendItem legendItem)
 {
     this.legend     = legend;
     this.legendItem = legendItem;
     if (this.legend != null)
     {
         this.margins.Common = this.legend.Common;
     }
 }
        public int Add(Color color, string text)
        {
            LegendItem legendItem = new LegendItem(text, color, "");

            legendItem.Legend = this.legend;
            if (this.common != null)
            {
                legendItem.common = this.common;
            }
            this.Invalidate(false);
            return(this.Add(legendItem));
        }
        public void Insert(int index, Color color, string text)
        {
            LegendItem legendItem = new LegendItem(text, color, "");

            legendItem.Legend = this.legend;
            if (this.common != null)
            {
                legendItem.common = this.common;
            }
            this.Insert(index, legendItem);
            this.Invalidate(false);
        }
        public int Add(string image, string text)
        {
            LegendItem legendItem = new LegendItem(text, Color.Empty, image);

            legendItem.Legend = this.legend;
            if (this.common != null)
            {
                legendItem.common = this.common;
            }
            this.Invalidate(false);
            return(this.Add(legendItem));
        }
Exemplo n.º 5
0
 public LegendCellCollection(LegendItem legendItem)
 {
     this.legendItem = legendItem;
 }
 public void Insert(int index, LegendItem value)
 {
     this.Insert(index, (object)value);
 }
 public void Remove(LegendItem value)
 {
     this.array.Remove(value);
     this.Invalidate(false);
 }
 public int IndexOf(LegendItem value)
 {
     return(this.array.IndexOf(value));
 }
 public bool Contains(LegendItem value)
 {
     return(this.array.Contains(value));
 }