ArcObjects Library Reference (Geometry)  

ISegmentCollection.Segment Property

A reference to the ith segment.

[Visual Basic .NET]
Public Function get_Segment ( _
    ByVal i As Integer _
) As ISegment
[C#]
public ISegment get_Segment (
    int i
);
[C++]
HRESULT get_Segment(
  long i,
  ISegment** Segment
);
[C++]

Parameters

i   i is a parameter of type long Segment [out, retval]

  Segment is a parameter of type ISegment

Product Availability

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

Description

Returns the ith Segment from the Segment Collection.  The first Segment has index 0 and the last Segment has index equal to SegmentCount - 1.  The last Segment can also be referenced using index -1.

See Also

ISegmentCollection Interface