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


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

ILine.PutCoords Method

Sets this line's endpoints to be 'from' and 'to'.

[Visual Basic .NET]
Public Sub PutCoords ( _
    ByVal from As IPoint, _
    ByVal to As IPoint _
)
[C#]
public void PutCoords (
    IPoint from,
    IPoint to
);
[C++]
HRESULT PutCoords(
  IPoint* from,
  IPoint* to
);
[C++]
Parameters
from 

from is a parameter of type IPoint* to
to is a parameter of type IPoint*

Product Availability

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

Description

The PutCoords method sets the From Point and To Point for a line object. If the From Point and To Point are identical, it creates a zero Length line with the same start and endpoint.

Remarks

 

Line PutCoords Example

See Also

ILine Interface