ArcObjects Library Reference (Editor)  

IEditSketch.Vertex Property

The index of the current vertex of the sketch.

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

Product Availability

Available with ArcGIS Desktop.


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

Use Part, Segment and Vertex when creating custom commands for the sketch context menu. For example, to delete a vertex in the edit sketch, right-click on the vertex to retrieve its index and call IPointCollection::RemovePoints .

See Also

IEditSketch Interface | IEditSketch.Part Property | IEditSketch.Segment Property