This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnumSegment Interface > IEnumSegment.SetAt Method (ArcObjects .NET 10.5 SDK) |
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
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.