VertexAddedEventArgs ClassCognex VisionPro 9.20

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.

Inheritance Hierarchy

System Object
  System EventArgs
    Cognex.Vision EventArgs
      Cognex.Vision VertexAddedEventArgs

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

public sealed class VertexAddedEventArgs : EventArgs, 
	IObject

The VertexAddedEventArgs type exposes the following members.

Constructors

  NameDescription
Public methodVertexAddedEventArgs

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.

Top
Methods

  NameDescription
Public methodEquals
Compares the equality of this object with another.
(Overrides EventArgs Equals(Object).)
Public methodGetHashCode
Returns the hash code of this object.
(Overrides EventArgs GetHashCode .)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString

Returns a human readable string that represents the object.

(Overrides Object ToString .)
Top
Operators

  NameDescription
Public operatorStatic memberEquality
Compares the equality of two VertexAddedEventArgs objects.
Public operatorStatic memberInequality
Compares the inequality of two VertexAddedEventArgs objects.
Top
Properties

  NameDescription
Public propertyHandle (Overrides EventArgs Handle.)
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 Polygon.

Public propertyNewX

X-coordinate of the new vertex.

Public propertyNewY

Y-coordinate of the new vertex.

Top
See Also