ArcGIS Pro 2.8 API Reference Guide
AddSegments(IEnumerable<Segment>,Boolean) Method

ArcGIS.Core.Geometry Namespace > MultipartBuilderEx Class > AddSegments Method : AddSegments(IEnumerable<Segment>,Boolean) Method
An enumeration of segments.
(Optional) Specifies whether a new part is to be started. The default value is false.
Adds segments to the MultipartBuilderEx. The segments will be added to the end of the Parts list.
Syntax
public void AddSegments( 
   IEnumerable<Segment> segments,
   bool startNewPart
)
Public Overloads Sub AddSegments( _
   ByVal segments As IEnumerable(Of Segment), _
   Optional ByVal startNewPart As Boolean _
) 

Parameters

segments
An enumeration of segments.
startNewPart
(Optional) Specifies whether a new part is to be started. The default value is false.
Exceptions
ExceptionDescription
segments is null.
Remarks
The spatial reference of each segment is ignored, and the attribute of each segment does not affect the attribute awareness of the builder. However, if the builder has an attribute and the start or end point of a segment also has that attribute, then the attribute value will be taken from the point. If the point doesn't have that attribute, then a default value will be set in the builder. For example, suppose the HasZ property of the builder is set to true. If the HasZ property of a point is set to true, then the point's z-value is used. Otherwise, the default value is used. The default value for Z is 0, for M is NaN and for ID is 0.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipartBuilderEx Class
MultipartBuilderEx Members
Overload List