Пример #1
0
        public int Add(string name, LegendCellType cellType, string text, ContentAlignment alignment)
        {
            LegendCell legendCell = new LegendCell(cellType, text, alignment);

            legendCell.Name = name;
            return(base.List.Add(legendCell));
        }
Пример #2
0
        private LegendCell CreateNewLegendCell(LegendCellType cellType, System.Drawing.Font cellFont, string text, System.Drawing.ContentAlignment cellAlignment)
        {
            LegendCell legendCell = new LegendCell();

            legendCell.CellType  = cellType;
            legendCell.Font      = cellFont;
            legendCell.Text      = text;
            legendCell.Alignment = cellAlignment;
            legendCell.ToolTip   = Resources.lang.ChartZoomFeature;

            return(legendCell);
        }
Пример #3
0
 private void Intitialize(LegendCellType cellType, string text, ContentAlignment alignment)
 {
     this.cellType = cellType;
     if (this.cellType == LegendCellType.Image)
     {
         this.image = text;
     }
     else
     {
         this.text = text;
     }
     this.alignment = alignment;
 }
Пример #4
0
 public void Insert(int index, LegendCellType cellType, string text, ContentAlignment alignment)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public int Add(LegendCellType cellType, string text, ContentAlignment alignment)
 {
     throw new NotImplementedException();
 }
Пример #6
0
		public LegendCell (LegendCellType cellType, string text, ContentAlignment alignment)
		{
		}
Пример #7
0
		public LegendCell (LegendCellType cellType, string text)
		{
		}
 public void Insert(int index, LegendCellType cellType, string text, ContentAlignment alignment)
 {
     base.List.Insert(index, new LegendCell(cellType, text, alignment));
 }
 public int Add(LegendCellType cellType, string text, ContentAlignment alignment)
 {
     return(base.List.Add(new LegendCell(cellType, text, alignment)));
 }
Пример #10
0
 public LegendCell(LegendCellType cellType, string text, ContentAlignment alignment)
 {
 }
Пример #11
0
 public LegendCell(LegendCellType cellType, string text)
 {
 }
Пример #12
0
 LegendCell getLegCell(string text, Color col, string cellName, string image, string postback, LegendCellType cellType, string tooltip)
 {
     return(new LegendCell
     {
         ForeColor = col,
         Text = text,
         Image = image,
         PostBackValue = postback,
         CellType = cellType,
         Margins = { Left = 5, Right = 5 },
         ToolTip = tooltip
     });
 }
Пример #13
0
 public LegendCell(LegendCellType cellType, string text, ContentAlignment alignment)
 {
     this.Intitialize(cellType, text, alignment);
 }
Пример #14
0
 public LegendCell(LegendCellType cellType, string text)
 {
     this.Intitialize(cellType, text, ContentAlignment.MiddleCenter);
 }
Пример #15
0
 public LegendCell(LegendCellType cellType, string text, ContentAlignment alignment)
     : base(null)
 {
     Intitialize(cellType, text, alignment);
 }