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


IGeometryCollection.GeometryCount Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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(
  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

.NET Samples

3D multipatch examples (Code Files: CompositeExamples GeometryUtilities GraphicsLayer3DUtilities)