ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Geometry Namespace / MultipartBuilderEx Class / AddSegment Method / AddSegment(SegmentBuilderEx,Boolean) Method
The segment builder to add.
(Optional) Specifies whether a new part is to be started. The default value is false.

In This Topic
    AddSegment(SegmentBuilderEx,Boolean) Method
    In This Topic
    Add a segment to the MultipartBuilderEx using a segment builder. The segment will be added to the end of the Parts list.
    Syntax
    public void AddSegment( 
       SegmentBuilderEx segmentBuilder,
       bool startNewPart
    )
    Public Overloads Sub AddSegment( _
       ByVal segmentBuilder As SegmentBuilderEx, _
       Optional ByVal startNewPart As Boolean _
    ) 

    Parameters

    segmentBuilder
    The segment builder to add.
    startNewPart
    (Optional) Specifies whether a new part is to be started. The default value is false.
    Exceptions
    ExceptionDescription
    segmentBuilder is null.
    Remarks
    The spatial reference of the segment is ignored, and the attribute of the segment does not affect the attribute awareness of the builder. However, if the builder has an attribute and the start or end point of the 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 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also