Vertices Property [Polygon]

Vertices returns the polygon vertices. Returns an array of doubles.

Syntax

object.Vertices

Example

This example demonstrates how to return the array of the polygon 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() = Polygon.Vertices

 

Dim Element As Integer

For Element = 0 to 5 Step 1

Debug.Print Vertices(Element)

Next

Used by: Polygon object