ArcObjects Library Reference (Editor)  

IEditSketch.Segment Property

The index of the current segment of the sketch.

[Visual Basic .NET]
Public ReadOnly Property Segment As Integer
[C#]
public int Segment {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

You must right-click on the desired segment in the edit sketch to set this property correctly. The wrong segment index will be returned if you do not right-click on the desired segment beforehand. A value of -1 indicates no segment has been selected. For example, if your last right-click was on an edit sketch vertex, the Segment property will return a value of -1.

See Also

IEditSketch Interface | IEditSketch.Vertex Property | IEditSketch.Part Property