AddSplinePolyline Method
The AddSplinePolyline method creates a spline polyline. Returns an AutoSplinePolyline object.
Syntax
object.AddSplinePolyline( vertices, id )
Parameter | Type | Description |
vertices | Variant | optional, see Remarks |
id | Variant | optional, spline polyline name |
Remarks
Use page units in the array. Vertices is an array containing alternating XY page coordinates. This assumes the entire array is used. VB users can use ReDim to set the array size to the used size if necessary. See Coordinate Arrays for more information about creating arrays in Grapher.
Example
This example shows how to dimension the coordinates for a spline polyline and create a new spline polyline. The even numbered elements within the Coordinates array represent X values, while the odd numbered elements represent their corresponding Y values.
Dim SplinePolyline As Object
Dim Coordinates(5) As Double
Coordinates(0) = 4: Coordinates(1) = 1
Coordinates(2) = 7: Coordinates(3) = 3
Coordinates(4) = 2: Coordinates(5) = 6
Set SplinePolyline = Shapes.AddSplinePolyline(Coordinates)
Used by: AutoShapes collection