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


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

ISegmentCollection.ReplaceSegmentCollection Method

Remove and inserts some segments.

[Visual Basic .NET]
Public Sub ReplaceSegmentCollection ( _
    ByVal Index As Integer, _
    ByVal goingAway As Integer, _
    ByVal newSegments As ISegmentCollection _
)
[C#]
public void ReplaceSegmentCollection (
    int Index,
    int goingAway,
    ISegmentCollection newSegments
);
[C++]
HRESULT ReplaceSegmentCollection(
  long Index,
  long goingAway,
  ISegmentCollection* newSegments
);
[C++]

Parameters Index Index is a parameter of type long goingAway goingAway is a parameter of type long newSegments
newSegments is a parameter of type ISegmentCollection

Product Availability

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

Description

Replaces a specified number (goingAway) of Segments in the Segment Collection begining at a given index with a Segment Collection of Segments (inserted at the given index).

See Also

ISegmentCollection Interface