Sets the X and Y coordinates.
[Visual Basic .NET] Public Sub PutCoords ( _ ByVal X As Double, _ ByVal Y As Double _ )
[C#] public void PutCoords ( double X, double Y );
[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.
[C#]
private void DefinePoint()
{
IPoint point = new PointClass();
point.PutCoords(0, 0);
System.Windows.Forms.MessageBox.Show(point.X + ", " + point.Y);
}
{
IPoint point = new PointClass();
point.PutCoords(0, 0);
System.Windows.Forms.MessageBox.Show(point.X + ", " + point.Y);
}