Add

Add(ChartType)

创建新的图表系列并将其添加到集合中。

public IChartSeries Add(ChartType type)
参数类型描述
typeChartType系列的类型

返回值

新的图表系列。

另请参阅


Add(IChartDataCell, ChartType)

IChartDataCell 创建新的图表系列并将其添加到集合中。

public IChartSeries Add(IChartDataCell cellWithSeriesName, ChartType type)
参数类型描述
cellWithSeriesNameIChartDataCell包含系列名称的单元格。
typeChartType系列类型的设置类型

返回值

添加的图表系列或已经在集合中的系列。

备注

如果从同一单元格创建的图表系列已经在集合中,则该方法不添加任何内容并返回其索引。

另请参阅


Add(IChartCellCollection, ChartType)

IChartCellCollection 创建新的图表系列并将其添加到集合中。

public IChartSeries Add(IChartCellCollection cellsWithSeriesName, ChartType type)
参数类型描述
cellsWithSeriesNameIChartCellCollection包含系列名称的单元格。
typeChartType系列类型的设置类型

返回值

添加的图表系列或已经在集合中的系列。

备注

如果从同一单元格创建的图表系列已经在集合中,则该方法不添加任何内容并返回其索引。

另请参阅


Add(string, ChartType)

从值创建新的图表系列并将其添加到集合中。

public IChartSeries Add(string name, ChartType type)
参数类型描述
nameString系列名称。
typeChartType系列类型的设置类型

返回值

添加的图表系列。

另请参阅