VertexAddedEventArgs Constructor Cognex VisionPro 9.21

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.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.0.0
Syntax

public VertexAddedEventArgs(
	int index,
	double newX,
	double newY,
	int newNumVertices
)

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