This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.GeometryCount Property (ArcObjects .NET 10.4 SDK) |
The number of geometries in this collection.
[Visual Basic .NET] Public ReadOnly Property GeometryCount As Integer
[C#] public int GeometryCount {get;}
[C++]
HRESULT get_GeometryCount(
long* cParts
);
[C++]
Parameters cParts [out, retval] cParts is a parameter of type long
Returns the number of Geometries in the GeometryCollection. The last Geometry in the GeometryCollection has an index equal to GeometryCount - 1.