Construct the CogVertexAddedEventArgs object with the supplied index, x-coordinate, y-coordinate, and new number of vertices. When the VertexAdded event has been caused by calling NumVertices() with an argument greater than the existing number of vertices, the index will be -1 (i.e. added to the end of the list of vertices) and the x-coordinate and y-coordinate will both be zero.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax
Parameters
- index
- Type: System Int32
The index of the added vertex. -1 means that new vertices were added at the end until the number of vertices equaled newNumVertices.
- newX
- Type: System Double
X-coordinate of the new vertex.
- newY
- Type: System Double
Y-coordinate of the new vertex.
- newNumVertices
- Type: System Int32
The new number of vertices in the CogPolygon.
See Also