Construct the CogVertexRemovedEventArgs object with the supplied index and new number of vertices. When the VertexRemoved event has been caused by calling NumVertices() with an argument less than the existing number of vertices, the index will be -1 (i.e. removed from the end of the list of vertices).
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
Parameters
- index
- Type: System Int32
The index of the removed vertex. -1 means that vertices were removed at the end until the number of vertices equaled newNumVertices.
- newNumVertices
- Type: System Int32
The new number of vertices in the CogPolygon.
See Also