property Elements.Count as Long
Returns the number of elements in the collection.

TypeDescription
Long A Long expression that specifies the number of elements on the surface.
The Count property specifies the number of elements in the Elements collection. The Item property accesses the element giving its identifier.

The following VB sample enumerates the elements on the surface:

Dim e As Variant
For Each e In Surface1.Elements
    Debug.Print e.ID
Next