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 | 图表在集合中的位置。 |
返回值
创建的图表。
另请参见
- 接口 IChart
- 枚举 ChartType
- 接口 IShapeCollection
- 命名空间 Aspose.Slides
- 程序集 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,则新图表将没有系列和最少的设置。在这种情况下,图表创建将更快。 |
返回值
创建的图表。
另请参见
- 接口 IChart
- 枚举 ChartType
- 接口 IShapeCollection
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides