ArcObjects Library Reference  (Geometry)    

IGeometryCollection.GeometryCount Property

The number of geometries in this collection.

[Visual Basic 6.0]
Property GeometryCount As Long
[Visual Basic .NET]
Public ReadOnly Property GeometryCount As Integer
[C#]
public int GeometryCount {get;}
[Java]
public  getGeometryCount (
    Long cParts
)
[C++]
HRESULT get_GeometryCount(
  long* cParts
);
[C++]

Parameters

cParts [out, retval]

  cParts is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns the number of Geometries in the GeometryCollection.  The last Geometry in the GeometryCollection has an index equal to GeometryCount - 1.

See Also

IGeometryCollection Interface

Example

IGeometryCollection_Example