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

IEnumSegment.SetAt Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnumSegment Interface > IEnumSegment.SetAt Method
ArcGIS Developer Help

IEnumSegment.SetAt Method

Resets enumerator to specific location.

[Visual Basic .NET]
Public Sub SetAt ( _
    ByVal iPart As Integer, _
    ByVal ISegment As Integer _
public void SetAt (
    int iPart,
    int ISegment
  long iPart,
  long ISegment

iPart is a parameter of type long ISegment
ISegment is a parameter of type long

Product Availability

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


The SetAt method allows setting the enumerator at any given location in the enumerator. Then using the Next method will return the specified segment. For example, using SetAt(1,0) followed by Next will return the segment located at Part Index = 1 and Segment Index = 0.


See picture for a graphical explanation of some of the IEnumSegment methods.

See Also

IEnumSegment Interface