This class holds data provided by the VertexAdded. The VertexAdded is raised after one, or possibly several vertices are added to a Polygon as a result of calling AddVertex or setting NumVertices.
System EventArgs
Cognex.Vision EventArgs
Cognex.Vision VertexAddedEventArgs
Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
The VertexAddedEventArgs type exposes the following members.
| Name | Description | |
|---|---|---|
| VertexAddedEventArgs | 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. |
| Name | Description | |
|---|---|---|
| Equals | Compares the equality of this object with another. (Overrides EventArgs Equals(Object).) | |
| GetHashCode | Returns the hash code of this object. (Overrides EventArgs GetHashCode .) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Returns a human readable string that represents the object. |
| Name | Description | |
|---|---|---|
| Equality | Compares the equality of two VertexAddedEventArgs objects. | |
| Inequality | Compares the inequality of two VertexAddedEventArgs objects. |
| Name | Description | |
|---|---|---|
| Handle | (Overrides EventArgs Handle.) | |
| 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 Polygon. | |
| NewX | X-coordinate of the new vertex. | |
| NewY | Y-coordinate of the new vertex. |