The Point ID attribute.
[Visual Basic 6.0] Property ID As Long
[Visual Basic .NET] Public Property ID As Integer
[C#] public int ID {get; set;}
[Java] public int getID() throws IOException, AutomationException
[Java] public void setID( Long ID ) throws IOException, AutomationException
[C++]
HRESULT get_ID(
long* pointID
);
[C++] HRESULT put_ID( long pointID);
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;
The following Visual Basic Code explains how to do it:
Dim pPoint As IPoint
Set pPoint = New Point
pPoint.PutCoords 100, 100
Dim pIDA As IPointIDAware
Set pIDA = pPoint
pIDA.PointIDAware = True
pPoint.ID = 10