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


IPoint.ID Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IPoint.ID Property

The Point ID attribute.

[Visual Basic .NET]
Public Property ID As Integer
[C#]
public int ID {get; set;}
[C++]
HRESULT get_ID(
  long* pointID
);
[C++]
HRESULT put_ID(
  long pointID
);
[C++]

Parameters 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.

Description

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.

Remarks

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

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