GeometriesNum Method

Returns the number of geometries in the shape.

Applies to: Shape object

Syntax

[[Let] countRet = ] object.GeometriesNum ()

The GeometriesNum method syntax has these parts:

Part Description
object

Required. An expression that returns a Shape object.

countRet Optional. A Long type variable.

Remarks

For all 1D and 2D shapes the GeometriesNum method always returns a value equal to or greater than 1, as such shapes always contain at least one geometry. For shapes of other types the method always returns 0, as they don't contain geometries.

 

See Also

AddGeometry method, Geometry method, RemoveGeometry method, Geometry object