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


IPointCollection.Point 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.Point Property
ArcGIS Developer Help

IPointCollection.Point Property

A copy of the ith vertex of a Path, Ring, Polyline, or Polygon; or a reference to the ith point of a Multipoint, TriangleFan, or TriangleStrip.

[Visual Basic .NET]
Public Function get_Point ( _
    ByVal i As Integer _
) As IPoint
[C#]
public IPoint get_Point (
    int i
);
[C++]
HRESULT get_Point(
  long i,
  IPoint** Point
);
[C++]
Parameters
i 

i is a parameter of type long Point [out, retval]
Point is a parameter of type IPoint**

Product Availability

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

Description

Gets the ith Point from the PointCollection.  The first Point in the PointCollection has index 0, and the last Point has index equal to PointCount - 1.  (Alternatively, the last Point in the PointCollection can be referenced using index -1.).

Remarks

Note: Since a copy of the point is returned by Point (get_Point) for path, ring, polyline and polygon the IPointCollection::UpdatePoint method must be used to update points on those geometry types.

See Also

IPointCollection Interface

.NET Samples

Move a graphic along a path in ArcMap Creating a toolbar of globe tools 3D multipatch examples Reducing schematic nodes and computing a cumulative attribute via a schematic rule ViperPin tool