Пример #1
0
        public ChartTrendline Add(ExcelTrendLine type)
        {
            ExceptionHelper.TrueThrow <ArgumentException>(this._Serie.Chart.IsType3D() || this._Serie.Chart.IsTypePercentStacked() ||
                                                          this._Serie.Chart.IsTypeStacked() || this._Serie.Chart.IsTypePieDoughnut(), "趋势线并不适用于3D图,堆叠图,饼图或圆环图");

            ChartTrendline result = new ChartTrendline(type);

            this._List.Add(result);

            return(result);
        }
Пример #2
0
 public ChartTrendline(ExcelTrendLine type)
 {
     this._Type = type;
 }