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


ISegmentCollection.Segment Property (ArcObjects .NET 10.6 SDK)
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

.NET Samples

Curve conversion add-in (Code Files: CurveConversionDockWin)

.NET Related Topics

How to modify a specific segment of a polyline