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


IPointCollection.Point Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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

3D multipatch examples (Code Files: GeometryUtilities) | ViperPin tool (Code Files: ViperPinForm) | 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)

.NET Related Topics

Creating custom symbols | How to create a multipoint using the ConstructIntersectionEx method | How to create a sketch operation | How to modify a specific vertex of a polyline | Working with the edit sketch