GSLine for a given to & from point pair.
[Visual Basic .NET] Public Function GetLine ( _ ByVal pointA As Integer, _ ByVal pointB As Integer, _ ByRef ppGSLine As IGSLine _ ) As Boolean
[C#] public bool GetLine ( int pointA, int pointB, ref IGSLine ppGSLine );
Product Availability
Available with ArcGIS Desktop.