ExpertXls Excel Library for .NET
AddChartWorksheet Method (chartType, worksheetName)
Namespaces ► ExpertXls.ExcelLib ► ExcelChartWorksheetsCollection ► AddChartWorksheet(ExcelChartType, String)
ExpertXls Excel Library for .NET
Use this type of constructor when the series will be manually added to the chart, otherwise use the constructor accepting the data source range parameter. Adds a new chart worksheet with the specified name to the collection without specifying the data source range.
Declaration Syntax

C# | Visual Basic | Visual C++

    public ExcelChartWorksheet AddChartWorksheet(
    	ExcelChartType chartType,
    	string worksheetName
    )

    Public Function AddChartWorksheet ( _
    	chartType As ExcelChartType, _
    	worksheetName As String _
    ) As ExcelChartWorksheet

    public:
    ExcelChartWorksheet^ AddChartWorksheet(
    	ExcelChartType chartType,
    	String^ worksheetName
    )

Parameters

chartType (ExcelChartType)
  The chart type

worksheetName (String)
  The name of the chart worksheet.

Return Value
The newly created chart

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)