/// <summary> /// Adds a chartsheet to the workbook. /// </summary> /// <param name="Name">The name of the worksheet</param> /// <param name="chartType">The type of chart</param> /// <returns></returns> public ExcelChartsheet AddChart(string Name, eChartType chartType) { if (ExcelChart.IsTypeStock(chartType)) { throw (new InvalidOperationException("Please use method AddStockChart for Stock Charts")); } return((ExcelChartsheet)AddSheet(Name, true, chartType, null)); }