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


ISegmentCollection.AddSegments Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

ISegmentCollection.AddSegments Method

Adds references to segments. This method is intended for internal use only.

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

Parameters 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

Adds the first specified number (Count) of Segments to the Segment Collection from an array of Segments (with at least Count segments).  The Segments are all added to the end of the Segment Collection in the same sequence as they are ordered in the array.

Remarks

Note: the array must contains only ISegment pointers, otherwise it night crash the application.

[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