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


IPointCollection.PointCount Property (ArcObjects .NET 10.4 SDK)
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) | ViperPin tool (Code Files: ViperPinForm) | Tabbed feature inspector (Code Files: TabbedInspector) | Move a graphic along a path in ArcMap (Code Files: AnimationUtils) | Creating a toolbar of globe tools (Code Files: PolylineGeometry) | Reducing schematic nodes and computing a cumulative attribute via a schematic rule (Code Files: NodeReductionRule) | Draw text on a MapControl (Code Files: DrawText) | Tabbed feature inspector (Code Files: ObjectInspector)

.NET Related Topics

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