Пример #1
0
 protected override Chart CreateUIElement(GraphicStyleInfo cellInfo)
 {
     if (cellInfo.CellValue != null && cellInfo.CellValue is IChartShape)
     {
         IChartShape chartShape = cellInfo.CellValue as IChartShape;
         return(chartShape.CreateChart());
     }
     else if (cellInfo.CellValue != null && cellInfo.CellValue is IChart)
     {
         IChart chartShape = cellInfo.CellValue as IChart;
         return(chartShape.CreateChart());
     }
     return(base.CreateUIElement(cellInfo));
 }