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


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

ISegmentCollection.SetSegments Method

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

Product Availability

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

Description

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).

[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