ShapeCollectionAddChart Method (ChartType, Single, Single, Single, Single) |
Creates a new Chart, initialize it with sample series data and settings and adds
it to the end of the collection.
Namespace:
Aspose.Slides
Assembly:
Aspose.Slides (in Aspose.Slides.dll) Version: 20.3.0.0 (20.3)
Syntaxpublic IChart AddChart(
ChartType type,
float x,
float y,
float width,
float height
)
Public Function AddChart (
type As ChartType,
x As Single,
y As Single,
width As Single,
height As Single
) As IChart
public:
virtual IChart^ AddChart(
ChartType type,
float x,
float y,
float width,
float height
) sealed
abstract AddChart :
type : ChartType *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> IChart
override AddChart :
type : ChartType *
x : float32 *
y : float32 *
width : float32 *
height : float32 -> IChart Parameters
- type
- Type: Aspose.Slides.ChartsChartType
Type of chart. - x
- Type: SystemSingle
X coordinate of a new chart. - y
- Type: SystemSingle
Y coordinate of a new chart. - width
- Type: SystemSingle
Chart's width. - height
- Type: SystemSingle
Chart's height.
Return Value
Type:
IChartCreated chart.
Implements
IShapeCollectionAddChart(ChartType, Single, Single, Single, Single)
See Also