This document is archived and information here might be outdated. Recommended version. |
The Point ID attribute.
[Visual Basic .NET]
Public Property ID As Integer
[C#]
public int ID {get; set;}
[C++]
HRESULT get_ID(
System.Int32* 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
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.
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;