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


IEditSketch.Segment Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketch Interface > IEditSketch.Segment Property
ArcGIS Developer Help

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