NumberOfPoints

Definition:

Function NumberOfPoints() As Long

Description

This function returns the number of points in a polyline.

Example:

The code shown transposes polyline1

 

Sub Button1_EventClick()

Dim This As Object : Set This = Button1

For I = 0 To Polyline1.NumberOfPoints

 

x = Polyline1.GetPointX(i) 

y = Polyline1.GetPointY(i) 

Polyline1.SetPoint i , y, x 

 

Next I

End Sub

 

This function applies to the following object:

Polyline.