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


IEnumSegment.Previous 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.Previous Method
ArcGIS Developer Help

IEnumSegment.Previous Method

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,
  System.Int32* outPartIndex,
  System.Int32* 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*

Product Availability

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

Description

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.

Remarks

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

See Also

IEnumSegment Interface