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

ArcGIS.Core.Geometry Namespace > LineBuilderEx Class > CreateLineSegment Method : CreateLineSegment(MapPoint,MapPoint,SpatialReference) Method
The start point.
The end point.
(Optional) The SpatialReference. The default value is null. The spatial references of the start point and end point are ignored.
Convenience method to create a new instance of the LineSegment class.
Syntax
Public Overloads Shared Function CreateLineSegment( _
   ByVal startPoint As MapPoint, _
   ByVal endPoint As MapPoint, _
   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. The spatial references of the start point and end point are ignored.

Return Value

Exceptions
ExceptionDescription
startPoint or endPoint is null.
Remarks
The new instance will build a straight line segment between the start and end point. Attributes are inherited from the start and end points.

Line Segment

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

LineBuilderEx Class
LineBuilderEx Members
Overload List