This document is archived and information here might be outdated.  Recommended version.


ISegmentCollection.AddSegmentCollection Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

ISegmentCollection.AddSegmentCollection Method

Adds references to the segments from the specified segment collection.

[Visual Basic .NET]
Public Sub AddSegmentCollection ( _
    ByVal segments As ISegmentCollection _
)
[C#]
public void AddSegmentCollection (
    ISegmentCollection segments
);
[C++]
HRESULT AddSegmentCollection(
  ISegmentCollection* segments
);
[C++]

Parameters segments
segments is a parameter of type ISegmentCollection

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Adds a Segment Collection of Segments to the end of the existing Segment Collection.  It is assumed that the From Point of the new Segment Collection is the same as the To Point of the existing Segment Collection.

Remarks

AddSegmentCollection add the other geometry to the last part of the current geometry.
For example, adding a polyline (with one part) to another polyline (with one part)
is adding the second polyline segments into the first part of the other polyline
even if the polylines are disjoint.

See Also

ISegmentCollection Interface