This document is archived and information here might be outdated.  Recommended version.


IPoint.PutCoords Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IP > IPoint Interface > IPoint.PutCoords Method
ArcGIS Developer Help

IPoint.PutCoords Method

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.
Point PutCoords Example
[C#]     private void DefinePoint()
    {
        IPoint point = new PointClass();
        point.PutCoords(0, 0);
        System.Windows.Forms.MessageBox.Show(point.X + ", " + point.Y);
    }

See Also

IPoint Interface

.NET Samples

Controls commands environment Dynamic logo Buffer snap agent Create custom move, rotate, and scale GeometricEffects within a single project Create custom move, rotate, and scale GeometricEffects within a single project Geoevents in a MapControl RSS weather layer Triangle graphic element