Vertices Property [Curve]

 

Vertices returns or sets the curve vertices. Returns an array of doubles.

 

Syntax

object.Vertices( UnitType )

object.Vertices( UnitType ) = Vertices

 

Parameter

Type

Description

UnitType

MVCoordDisplayUnits

optional; unit type, default is mvCoordDisplayUnitPageUnits

Vertices

Array of Doubles

required; array containing each vertex in the curve

 

Remarks

VB users can use ReDim to set the array size to the used size if necessary or you can use Vertices2.

 

Example 1

This example demonstrates how to return the array of the curve vertices. Since the Vertices array is an outgoing parameter, the value of the elements inside the array can be returned.

 

Dim Vertices() As Double

Vertices() = Polyline.Vertices

 

Dim Element As Integer

For Element = 0 to 5 Step 1

 Debug.Print Vertices(Element)

Next

 

Example 2

This example demonstrates how to set the vertices of an existing polyline.

 

Dim coordinates(5) As Double

coordinates(0)=3.44: coordinates(1)=4.06

coordinates(2)=1.10: coordinates(3)=6.39

coordinates(4)=6.51: coordinates(5)=6.52

Polyline.Vertices = coordinates

 

Used by: Curve object