Shapes.AddChart Method
Adds a chart to a presentation.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function AddChart ( _
Type As XlChartType, _
Left As Single, _
Top As Single, _
Width As Single, _
Height As Single _
) As Shape
'Usage
Dim instance As Shapes
Dim Type As XlChartType
Dim Left As Single
Dim Top As Single
Dim Width As Single
Dim Height As Single
Dim returnValue As Shape
returnValue = instance.AddChart(Type, _
Left, Top, Width, Height)
Shape AddChart(
XlChartType Type,
float Left,
float Top,
float Width,
float Height
)
Parameters
- Type
Type: Microsoft.Office.Core.XlChartType
Type of chart.
- Left
Type: System.Single
Left dimension.
- Top
Type: System.Single
Top dimension.
- Width
Type: System.Single
Width of the chart.
- Height
Type: System.Single
Height of the chart.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.Shape