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

IPoint.ID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPoint Interface > IPoint.ID Property
ArcGIS Developer Help

IPoint.ID Property

The Point ID attribute.

[Visual Basic .NET]
Public Property ID As Integer
public int ID {get; set;}
  System.Int32* pointID
  long pointID
pointID [out, retval]

pointID is a parameter of type long* pointID
pointID is a parameter of type long

Product Availability

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


Returns or Sets the ID attribute of the Point.  The ID attribute is a numeric label, but does not serve any computational purposes.  The Point must be PointIDAware to make use of the ID attribute.


To set the ID value for a point you need to define it to be ID aware.

The following C# code explains how to do it:    

IPoint pnt = new PointClass();

pnt.PutCoords(100, 100);


IPointIDAware pntIDA = pnt as IPointIDAware;

pntIDA.PointIDAware = true;

pnt.ID = 10;

See Also

IPoint Interface