InsertChart
内容
[
隐藏
]InsertChart(ChartType, float, float, float, float, int)
创建一个新的图表,用示例系列数据和设置初始化它,并将其插入到集合中的指定位置。
public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index)
参数 | 类型 | 描述 |
---|---|---|
type | ChartType | 图表的类型。 |
x | Single | 新图表的 X 坐标。 |
y | Single | 新图表的 Y 坐标。 |
width | Single | 图表的宽度。 |
height | Single | 图表的高度。 |
index | Int32 | 图表在集合中的位置。 |
返回值
创建的图表。
参见
- interface IChart
- enum ChartType
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertChart(ChartType, float, float, float, float, int, bool)
创建一个新的图表,并将其插入到集合中的指定位置。
public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index,
bool initWithSample)
参数 | 类型 | 描述 |
---|---|---|
type | ChartType | 图表的类型。 |
x | Single | 新图表的 X 坐标。 |
y | Single | 新图表的 Y 坐标。 |
width | Single | 图表的宽度。 |
height | Single | 图表的高度。 |
index | Int32 | 图表在集合中的位置。 |
initWithSample | Boolean | 如果为 true,则新图表将使用示例系列数据和设置初始化。如果为 false,则新图表将没有系列和最小的设置。在这种情况下,创建图表的速度会更快。 |
返回值
创建的图表。
参见
- interface IChart
- enum ChartType
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides