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


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

ISegmentCollection.SetSegmentCollection Method

Replaces all segments with references to segments from the input collection.

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

Parameters newSegments
newSegments is a parameter of type ISegmentCollection

Product Availability

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

Description

Sets the contents of the Segment Collection equal to the contents of the input Segment Collection.  After SetSegmentCollection is called, the Segment Collection contains only the segments from the input Segment Collection (regardless of what it may have contained previously).

See Also

ISegmentCollection Interface