Shapes.AddCurve Method

Returns a Shape object that represents a Bézier curve in a document.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function AddCurve ( _
    ByRef SafeArrayOfPoints As Object, _
    ByRef Anchor As Object _
) As Shape
'Usage
Dim instance As Shapes
Dim SafeArrayOfPoints As Object
Dim Anchor As Object
Dim returnValue As Shape

returnValue = instance.AddCurve(SafeArrayOfPoints, _
    Anchor)
Shape AddCurve(
    ref Object SafeArrayOfPoints,
    ref Object Anchor
)

Parameters

  • SafeArrayOfPoints
    Type: System.Object%
    Required 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.
  • Anchor
    Type: System.Object%
    Optional Object. A Range object that represents the text to which the curve is bound. If Anchor is specified, the anchor is positioned at the beginning of the first paragraph in the anchoring range. If this argument is omitted, the anchoring range is selected automatically and the curve is positioned relative to the top and left edges of the page.

Return Value

Type: Microsoft.Office.Interop.Word.Shape

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.Word Namespace