CogPolygon SetVertex Method Cognex VisionPro 9.25 SR1
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: 93.1.0.0
Syntax

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

Parameters

index
Type: System Int32

Index of the vertex.

x
Type: System Double

X-coordinate of the vertex.

y
Type: System Double

Y-coordinate of the vertex.

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