InsertChart
Contents
[
Hide
]InsertChart(ChartType, float, float, float, float, int)
Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.
public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index)
Parameter | Type | Description |
---|---|---|
type | ChartType | The type of chart to create. |
x | Single | The x-coordinate of the new chart, in points. |
y | Single | The y-coordinate of the new chart, in points. |
width | Single | The width of the new chart, in points. |
height | Single | The height of the new chart, in points. |
index | Int32 | The zero-based index at which to insert the new chart in the shape collection. |
Return Value
The newly created IChart
.
See Also
- interface IChart
- enum ChartType
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides
InsertChart(ChartType, float, float, float, float, int, bool)
Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.
public IChart InsertChart(ChartType type, float x, float y, float width, float height, int index,
bool initWithSample)
Parameter | Type | Description |
---|---|---|
type | ChartType | The type of chart to create. |
x | Single | The x-coordinate of the new chart, in points. |
y | Single | The y-coordinate of the new chart, in points. |
width | Single | The width of the new chart, in points. |
height | Single | The height of the new chart, in points. |
index | Int32 | The zero-based index at which to insert the new chart in the shape collection. |
initWithSample | Boolean | True to initialize the new chart with sample series data and settings; false to create the chart with no series and only minimal settings, which makes creation faster. |
Return Value
The newly created IChart
.
See Also
- interface IChart
- enum ChartType
- class ShapeCollection
- namespace Aspose.Slides
- assembly Aspose.Slides