ArcObjects Library Reference  (Geometry)    

IPoint.X Property

The X coordinate.

[Visual Basic 6.0]
Property X As Double
[Visual Basic .NET]
Public Property X As Double
[C#]
public double X {get; set;}
[Java]
public Double getX()
throws
    IOException,
    AutomationException
[Java]
public void setX(
Double X
)
throws
    IOException,
    AutomationException
[C++]
HRESULT get_X(
  double* X
);
[C++]
HRESULT put_X(
  double X

);

[C++]

Parameters

X [out, retval]

  X is a parameter of type double

X

  X is a parameter of type double

Product Availability

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

Description

Returns and Sets the X coordinate of the Point.  The X coordinate is the horizontal position of the point.

[C#]

The following C# code shows how to get the X property of a point.

double x;

x = pnt.X;

 

[Visual Basic 6.0]
The following Visual Basic Code shows how to get the X property of a point.
  Dim dX as double

dX = m_pPoint.X

See Also

IPoint Interface | IPoint.Y Property | IPoint.Z Property | IPoint.M Property

Example

X_Example

 


Feedback Send feedback on this page