ArcObjects Library Reference  (Geometry)    

IPoint.QueryCoords Method

Returns the X and Y coordinates.

[Visual Basic 6.0]
Sub QueryCoords(
    X As Double, _
    Y As Double _
)
[Visual Basic .NET]
Public Sub QueryCoords ( _
    ByRef X As Double, _
    ByRef Y As Double _
)
[C#]
public void QueryCoords (
    ref double X,
    ref double Y
);
[Java]
public void queryCoords (
    double X,
    double Y
)
throws
    IOException,
    AutomationException
[C++]
HRESULT QueryCoords(
  double* X,
  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);

[Visual Basic 6.0]

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

 Dim pPoint as IPoint

Dim dX as Double, dY as Double
...
...

pPoint.QueryCoords dX, dY

See Also

IPoint Interface

 


Feedback Send feedback on this page