This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.SetSegments Method (ArcObjects .NET 10.5 SDK) |
Replaces all segments with references to the input segments. This method is intended for internal use only.
[Visual Basic .NET] Public Sub SetSegments ( _ ByVal Count As Integer, _ ByRef newSegments As ISegment _ )
[C#] public void SetSegments ( int Count, ref ISegment newSegments );
[C++]
HRESULT SetSegments(
long Count,
ISegment** newSegments
);
[C++]
Parameters Count Count is a parameter of type long newSegments [in]
newSegments is a parameter of type ISegment
Sets the contents of the Segment Collection equal to the first Count segments from the input array of Segments. After SetSegments is called, the Segment Collection contains only count segments from the input Segment array (regardless of what it may have contained previously).
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.