Construct the VertexAddedEventArgs object with the supplied index, x-coordinate, y-coordinate, and new number of vertices. When the VertexAddedEvent has been caused by setting NumVertices to a value 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.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
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 Polygon.
See Also