Shapes.AddCurve Method
Returns a Shape object that represents a Bézier curve in a worksheet.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function AddCurve ( _
SafeArrayOfPoints As Object _
) As Shape
'Usage
Dim instance As Shapes
Dim SafeArrayOfPoints As Object
Dim returnValue As Shape
returnValue = instance.AddCurve(SafeArrayOfPoints)
Shape AddCurve(
Object SafeArrayOfPoints
)
Parameters
SafeArrayOfPoints
Type: System.ObjectRequired Object. An array of coordinate pairs that specifies the vertices and control points of the curve. The first point you specify is the starting vertex, and the next two points are control points for the first Bézier segment. Then, for each additional segment of the curve, you specify a vertex and two control points. The last point you specify is the ending vertex for the curve. Note that you must always specify 3n + 1 points, where n is the number of segments in the curve.
Return Value
Type: Microsoft.Office.Interop.Excel.Shape