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


IEnumSegment.SetAt Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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

.NET Related Topics

How to use the IEnumSegment methods