Geometry Method

Returns a Geometry object that corresponds to a geometry with the specified index in the geometry collection of the shape.

Applies to: Shape object

Syntax

[[Set] geometryRet =] object.Geometry ( index )

The Geometry method syntax has these parts:

Part Description
object Required. An expression that returns a Shape object.
index Required. An expression that returns a Long value. The index of the geometry in the geometry collection of the shape.
geometryRet Optional. A Geometry type variable.

Remarks

If index is less than 1 or greater than the number of geometries of the shape, the Geometry method returns Nothing. To find out the number of geometries of the shape, use the GeometriesNum method.

 

See Also

AddGeometry method, GeometriesNum method, RemoveGeometry method, Geometry object