CogPolygon SetVertex Method Cognex VisionPro
Set the coordinates of the vertex at the specified index. Index must be >= 0 and < NumVertices.

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

public void SetVertex(
	int index,
	double x,
	double y
)
Events

Event TypeReason
CogPolygon Changed

Fires when a vertex is set.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    index < 0

    ArgumentException

    index >= NumVertices

    Remarks

    Set the coordinates of the vertex at the specified index. index must be greater than or equal to 0 and less than NumVertices.

    See Also