ArcGIS Pro 2.9 API Reference Guide
CreateLineSegment(LineSegment,SpatialReference) Method

ArcGIS.Core.Geometry Namespace > LineBuilderEx Class > CreateLineSegment Method : CreateLineSegment(LineSegment,SpatialReference) Method
The existing line segment.
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference is inherited from segment.
Convenience method to create a new instance of the LineSegment class.
Syntax
public static LineSegment CreateLineSegment( 
   LineSegment segment,
   SpatialReference spatialReference
)
Public Overloads Shared Function CreateLineSegment( _
   ByVal segment As LineSegment, _
   Optional ByVal spatialReference As SpatialReference _
) As LineSegment

Parameters

segment
The existing line segment.
spatialReference
(Optional) The SpatialReference. The default value is null. If spatialReference is null, then the spatial reference is inherited from segment.

Return Value

Exceptions
ExceptionDescription
segment is null.
Remarks
The new instance will be a copy of the input LineSegment instance.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

LineBuilderEx Class
LineBuilderEx Members
Overload List