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


ISegmentCollection.SetSegmentCollection Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.SetSegmentCollection Method
ArcGIS Developer Help

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