ArcObjects Library Reference (Geometry)  

ILine2.QueryWKSCoords Method

Returns the (x,y) coordinates of this line's endpoints.

[Visual Basic .NET]
Public Sub QueryWKSCoords ( _
    ByRef from As WKSPoint, _
    ByRef to As WKSPoint _
)
[C#]
public void QueryWKSCoords (
    ref WKSPoint from,
    ref WKSPoint to
);
[C++]
HRESULT QueryWKSCoords(
  _WKSPoint* from,
  _WKSPoint* to
);
[C++]

Parameters

from [out]

  from is a parameter of type _WKSPoint

to [out]

  to is a parameter of type _WKSPoint

Product Availability

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

Remarks

The from and to parameters are WKSPoint structures instead of Point objects. If you are not interested in using or preserving vertex attributes then PutWKSCoords and QueryWKSCoords can be a quicker way to modify and obtain the xy coordinates defining the line.

See Also

ILine2 Interface