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


IPoint.QueryCoords 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.QueryCoords Method
ArcGIS Developer Help

IPoint.QueryCoords Method

Returns the X and Y coordinates.

[Visual Basic .NET]
Public Sub QueryCoords ( _
    ByRef X As Double, _
    ByRef Y As Double _
)
[C#]
public void QueryCoords (
    ref double X,
    ref double Y
);
[C++]
HRESULT QueryCoords(
  System.Double* X,
  System.Double* Y
);
[C++]
Parameters
X [out]

X is a parameter of type double* Y [out]
Y is a parameter of type double*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

The following C# code shows how the IPoint interface exposes a method to get the X,Y values of a Point:

double x, y;

pnt.QueryCoords(out x, out y);

See Also

IPoint Interface

.NET Samples

Move a graphic along a path in ArcMap Create a custom marker placement for placing markers around a point