This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.AddSegments Method (ArcObjects .NET 10.4 SDK) |
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
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.
Note: the array must contains only ISegment pointers, otherwise it night crash the application.
When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.