ArcObjects Library Reference  (Geometry)    

IPoint.ID Property

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

);

[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;

[Visual Basic 6.0]

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

See Also

IPoint Interface

 


Feedback Send feedback on this page