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


ISegmentCollection.InsertSegments 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.InsertSegments Method
ArcGIS Developer Help

ISegmentCollection.InsertSegments Method

Inserts references to the input segments. This method is intended for internal use only.

[Visual Basic .NET]
Public Sub InsertSegments ( _
    ByVal Index As Integer, _
    ByVal Count As Integer, _
    ByRef newSegments As ISegment _
)
[C#]
public void InsertSegments (
    int Index,
    int Count,
    ref ISegment newSegments
);
[C++]
HRESULT InsertSegments(
  long Index,
  long Count,
  ISegment** newSegments
);
[C++]
Parameters
Index 

Index is a parameter of type long Count
Count is a parameter of type long newSegments [in]
newSegments is a parameter of type ISegment**

Product Availability

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

Description

Inserts a specified number (Count) of Segments into the Segment Collection at the given index from an array of Segments.  The first Count segments from the array are inserted.

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

ISegmentCollection Interface