This class holds data provided by the VertexAdded event. The VertexAdded event fires after one, or possibly several vertices are added to the CogPolygon as a result of calling AddVertex() or NumVertices().
Inheritance Hierarchy
System EventArgs
Cognex.VisionPro CogVertexAddedEventArgs
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 69.0.0.0
Syntax
The CogVertexAddedEventArgs type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogVertexAddedEventArgs | 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. |
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| Index | The index of the added vertex. -1 means that new vertices were added at the end until the number of vertices equaled newNumVertices. | |
| NewNumVertices | The new number of vertices in the CogPolygon. | |
| NewX | X-coordinate of the new vertex. | |
| NewY | Y-coordinate of the new vertex. |
See Also