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


ISegmentCollection.Segment Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISegmentCollection Interface > ISegmentCollection.Segment Property
ArcGIS Developer Help

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