AddChart
内容
[
隐藏
]AddChart(ChartType, float, float, float, float)
创建一个新的图表,用示例系列数据和设置初始化它,并将其添加到集合的末尾。
public IChart AddChart(ChartType type, float x, float y, float width, float height)
参数 | 类型 | 描述 |
---|---|---|
type | ChartType | 图表的类型。 |
x | Single | 新图表的 X 坐标。 |
y | Single | 新图表的 Y 坐标。 |
width | Single | 图表的宽度。 |
height | Single | 图表的高度。 |
返回值
创建的图表。
另请参阅
- interface IChart
- enum ChartType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
AddChart(ChartType, float, float, float, float, bool)
创建一个新的图表并将其添加到集合的末尾。
public IChart AddChart(ChartType type, float x, float y, float width, float height,
bool initWithSample)
参数 | 类型 | 描述 |
---|---|---|
type | ChartType | 图表的类型。 |
x | Single | 新图表的 X 坐标。 |
y | Single | 新图表的 Y 坐标。 |
width | Single | 图表的宽度。 |
height | Single | 图表的高度。 |
initWithSample | Boolean | 如果为 true,则新图表将用示例系列数据和设置进行初始化。如果为 false,则新图表将没有系列和最小设置。在这种情况下,图表的创建会更快。 |
返回值
创建的图表。
另请参阅
- interface IChart
- enum ChartType
- interface IShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides