ArcGIS Pro 2.7 API Reference Guide
AddSegment(SegmentBuilder,Boolean) Method

ArcGIS.Core.Geometry Namespace > MultipartBuilder<T> Class > AddSegment Method : AddSegment(SegmentBuilder,Boolean) Method
The segment builder to add.
(Optional) Specifies whether a new part is to be started. The default value is false.
Add a segment to the Multipart using a segment builder. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public virtual void AddSegment( 
   SegmentBuilder segmentBuilder,
   bool startNewPart
)
Public Overloads Overridable Sub AddSegment( _
   ByVal segmentBuilder As SegmentBuilder, _
   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
Incompatible spatial references.
This method or property must be called within the lambda passed to QueuedTask.Run.
segmentBuilder is null.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MultipartBuilder<T> Class
MultipartBuilder<T> Members
Overload List