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


ILine2.PutWKSCoords Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IL > ILine2 Interface > ILine2.PutWKSCoords Method
ArcGIS Developer Help

ILine2.PutWKSCoords Method

From and To become the new endpoints of this line. Any existing attributes are deleted.

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

from is a parameter of type WKSPoint* to
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