ArcGIS Pro 2.8 API Reference Guide
CreateLineSegment(Coordinate3D,Coordinate3D,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > LineBuilderEx Class > CreateLineSegment Method : CreateLineSegment(Coordinate3D,Coordinate3D,SpatialReference) Method
The start point.
The end point.
(Optional) The SpatialReference. The default value is null.
Convenience method to create a new instance of the LineSegment class.
Syntax
Public Overloads Shared Function CreateLineSegment( _
   ByVal startPoint As Coordinate3D, _
   ByVal endPoint As Coordinate3D, _
   Optional ByVal spatialReference As SpatialReference _
) As LineSegment

Parameters

startPoint
The start point.
endPoint
The end point.
spatialReference
(Optional) The SpatialReference. The default value is null.

Return Value

Remarks
The new instance will build a straight line segment between the start and end point.

Line Segment

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LineBuilderEx Class
LineBuilderEx Members
Overload List