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


IEnumSegment.Previous Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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,
  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

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

.NET Related Topics

How to use the IEnumSegment methods