Add
内容
[
隐藏
]Add(ChartType)
创建新的图表系列并将其添加到集合中。
public IChartSeries Add(ChartType type)
参数 | 类型 | 描述 |
---|---|---|
type | ChartType | 系列的类型 |
返回值
新的图表系列。
另请参阅
Add(IChartDataCell, ChartType)
从 IChartDataCell
创建新的图表系列并将其添加到集合中。
public IChartSeries Add(IChartDataCell cellWithSeriesName, ChartType type)
参数 | 类型 | 描述 |
---|---|---|
cellWithSeriesName | IChartDataCell | 包含系列名称的单元格。 |
type | ChartType | 系列类型的设置类型 |
返回值
添加的图表系列或已经在集合中的系列。
备注
如果从同一单元格创建的图表系列已经在集合中,则该方法不添加任何内容并返回其索引。
另请参阅
- 接口 IChartSeries
- 接口 IChartDataCell
- 枚举 ChartType
- 接口 IChartSeriesCollection
- 命名空间 Aspose.Slides.Charts
- 程序集 Aspose.Slides
Add(IChartCellCollection, ChartType)
从 IChartCellCollection
创建新的图表系列并将其添加到集合中。
public IChartSeries Add(IChartCellCollection cellsWithSeriesName, ChartType type)
参数 | 类型 | 描述 |
---|---|---|
cellsWithSeriesName | IChartCellCollection | 包含系列名称的单元格。 |
type | ChartType | 系列类型的设置类型 |
返回值
添加的图表系列或已经在集合中的系列。
备注
如果从同一单元格创建的图表系列已经在集合中,则该方法不添加任何内容并返回其索引。
另请参阅
- 接口 IChartSeries
- 接口 IChartCellCollection
- 枚举 ChartType
- 接口 IChartSeriesCollection
- 命名空间 Aspose.Slides.Charts
- 程序集 Aspose.Slides
Add(string, ChartType)
从值创建新的图表系列并将其添加到集合中。
public IChartSeries Add(string name, ChartType type)
参数 | 类型 | 描述 |
---|---|---|
name | String | 系列名称。 |
type | ChartType | 系列类型的设置类型 |
返回值
添加的图表系列。