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


ILine.PutCoords Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geometry)  

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

.NET Related Topics

How to create a multipoint using the ConstructIntersectionEx method | How to use the IEnumSegment methods | How to use the IEnumVertex methods | Performance of ArcObjects