ArcObjects Library Reference  (Geometry)    

IPoint.PutCoords Method

Sets the X and Y coordinates.

[Visual Basic 6.0]
Sub PutCoords(
    ByVal X As Double, _
    ByVal Y As Double _
)
[Visual Basic .NET]
Public Sub PutCoords ( _
    ByVal X As Double, _
    ByVal Y As Double _
)
[C#]
public void PutCoords (
    double X,
    double Y
);
[Java]
public void putCoords (
    double X,
    double Y
)
throws
    IOException,
    AutomationException
[C++]
HRESULT PutCoords(
  double X,
  double Y
);
[C++]

Parameters

X

  X is a parameter of type double

Y

  Y is a parameter of type double

Product Availability

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

Remarks

Use the IPoint::PutCoords method to set the X,Y coordinates for a Point. The coordinates can also be set by updating the X and Y properties for the point.
Point PutCoords Example
[C#]

The following C# code shows how to set the values:

IPoint pnt = new PointClass();

pnt.PutCoords(1000, 2000);

 

[Visual Basic 6.0]

The following Visual Basic code shows how to set the values:

 Dim pPoint as IPoint

Set pPoint = New Point
pPoint.PutCoords 1000, 2000

See Also

IPoint Interface

Example

IPoint_PutCoords_Example

 


Feedback Send feedback on this page