This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IEnumSegment Interface > IEnumSegment.Previous Method (ArcObjects .NET 10.4 SDK) |
Returns the previous segment in this segment collection.
[Visual Basic .NET] Public Sub Previous ( _ ByRef outSegment As ISegment, _ ByRef outPartIndex As Integer, _ ByRef SegmentIndex As Integer _ )
[C#] public void Previous ( ref ISegment outSegment, ref int outPartIndex, ref int SegmentIndex );
[C++]
HRESULT Previous(
ISegment** outSegment,
long* outPartIndex,
long* SegmentIndex
);
[C++]
Parameters outSegment [out]
outSegment is a parameter of type ISegment outPartIndex [in, out] outPartIndex is a parameter of type long SegmentIndex [in, out] SegmentIndex is a parameter of type long
The Previous method returns the segment before the current position. For example, if the enumerator is in position Part Index=0 and Segment Index=1, then calling previous will return the segment located at Part Index=0 and Segment Index=0.
See picture for a graphical explanation of some of the IEnumSegment methods.