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 _
)
[C#]
public void SetAt (
    int iPart,
    int ISegment
);
[C++]
HRESULT SetAt(
  long iPart,
  long ISegment
);
[C++]
Parameters
iPart 

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.

Description

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.

Remarks

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

See Also

IEnumSegment Interface