CogVertexAddedEventArgs ClassCognex VisionPro
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 Object
  System EventArgs
    Cognex.VisionPro CogVertexAddedEventArgs

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax

public class CogVertexAddedEventArgs : EventArgs

The CogVertexAddedEventArgs type exposes the following members.

Constructors

  NameDescription
Public methodCogVertexAddedEventArgs
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.
Top
Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Properties

  NameDescription
Public propertyIndex
The index of the added vertex. -1 means that new vertices were added at the end until the number of vertices equaled newNumVertices.
Public propertyNewNumVertices
The new number of vertices in the CogPolygon.
Public propertyNewX
X-coordinate of the new vertex.
Public propertyNewY
Y-coordinate of the new vertex.
Top
See Also