## 參數Parameters

SafeArrayOfPointsSafeArrayOfPoints 必要Required VariantVariant 用於指定區線上之頂點和控制點的座標組陣列。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. 請注意，所指定的點的數目必須是 3n + 1 個，其中 n 為曲線中貝塞爾段落的數目。Note that you must always specify 3n + 1 points, where n is the number of segments in the curve.

## 範例Example

``````Sub CanvasBezier()

Dim docNew As Document
Dim shpCanvas As Shape
Dim sngArray(1 To 7, 1 To 2) As Single

'Create a new drawing canvas
Top:=100, Width:=300, Height:=50)

sngArray(1, 1) = 0
sngArray(1, 2) = 0
sngArray(2, 1) = 50
sngArray(2, 2) = 50
sngArray(3, 1) = 100
sngArray(3, 2) = 0
sngArray(4, 1) = 150
sngArray(4, 2) = 50
sngArray(5, 1) = 200
sngArray(5, 2) = 0
sngArray(6, 1) = 250
sngArray(6, 2) = 50
sngArray(7, 1) = 300
sngArray(7, 2) = 0

'Add Bezier curve to drawing canvas