This document is archived and information here might be outdated.  Recommended version.


IGeometryCollection.GeometryCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.GeometryCount Property
ArcGIS Developer Help

IGeometryCollection.GeometryCount Property

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(
  System.Int32* 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

.NET Samples

3D multipatch examples 3D multipatch examples 3D multipatch examples