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

IPointCollection.PointCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPointCollection Interface > IPointCollection.PointCount Property
ArcGIS Developer Help

IPointCollection.PointCount Property

The number of points in the collection.

[Visual Basic .NET]
Public ReadOnly Property PointCount As Integer
public int PointCount {get;}
HRESULT get_PointCount(
  System.Int32* cPoints
cPoints [out, retval]

cPoints is a parameter of type long*

Product Availability

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


Returns the number of Points in the PointCollection.  The last Point in the PointCollection has an index equal to PointCount - 1.

See Also

IPointCollection Interface

.NET Samples

Move a graphic along a path in ArcMap Tabbed feature inspector Creating a toolbar of globe tools Draw text on a MapControl 3D multipatch examples Reducing schematic nodes and computing a cumulative attribute via a schematic rule Tabbed feature inspector ViperPin tool