ArcObjects Library Reference (Geometry)  

IPointCollection.PointCount Property

The number of points in the collection.

[Visual Basic .NET]
Public ReadOnly Property PointCount As Integer
[C#]
public int PointCount {get;}
[C++]
HRESULT get_PointCount(
  long* cPoints
);
[C++]

Parameters

cPoints [out, retval]   cPoints is a parameter of type long

Product Availability

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

Description

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

3D multipatch examples (Code Files: GeometryUtilities) | Creating a toolbar of globe tools (Code Files: PolylineGeometry) | Draw text on a MapControl (Code Files: DrawText) | Move a graphic along a path in ArcMap (Code Files: AnimationUtils) | Simple point plug-in data source (Code Files: SimplePointCursor) | Tabbed feature inspector (Code Files: ObjectInspector TabbedInspector) | ViperPin tool (Code Files: ViperPinForm) |

.NET Related Topics

How to create a multipoint using the ConstructIntersectionEx method | How to create a sketch operation | Working with the edit sketch |