InsertChart()
Contents
[
Hide
]IShapeCollection::InsertChart(Charts::ChartType, float, float, float, float, int32_t) method
Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.
virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::InsertChart(Charts::ChartType type, float x, float y, float width, float height, int32_t index)=0
Arguments
Parameter | Type | Description |
---|---|---|
type | Charts::ChartType | The type of chart to create. |
x | float | The x-coordinate of the new chart, in points. |
y | float | The y-coordinate of the new chart, in points. |
width | float | The width of the new chart, in points. |
height | float | The height of the new chart, in points. |
index | int32_t | The zero-based index at which to insert the new chart in the shape collection. |
Return Value
The newly created Charts::IChart.
IShapeCollection::InsertChart(Charts::ChartType, float, float, float, float, int32_t, bool) method
Creates a new chart, initializes it with sample series data and settings, and inserts it into the shape collection at the specified index.
virtual System::SharedPtr<Charts::IChart> Aspose::Slides::IShapeCollection::InsertChart(Charts::ChartType type, float x, float y, float width, float height, int32_t index, bool initWithSample)=0
Arguments
Parameter | Type | Description |
---|---|---|
type | Charts::ChartType | The type of chart to create. |
x | float | The x-coordinate of the new chart, in points. |
y | float | The y-coordinate of the new chart, in points. |
width | float | The width of the new chart, in points. |
height | float | The height of the new chart, in points. |
index | int32_t | The zero-based index at which to insert the new chart in the shape collection. |
initWithSample | bool | 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 Charts::IChart.
See Also
- Enum ChartType
- Typedef SharedPtr
- Class IChart
- Class IShapeCollection
- Namespace Aspose::Slides
- Library Aspose.Slides