This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPointCollection Interface > IPointCollection.Point Property (ArcObjects .NET 10.5 SDK) |
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
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.).
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.