CogPolygon SetVertexX Method Cognex VisionPro 9.8
The X-coordinate of the vertex with the given index.

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

public void SetVertexX(
	int index,
	double value
)
Events

Event TypeReason
CogPolygon Changed

Fires when the x-coordinate changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    ArgumentException

    NumVertices < 1.

    ArgumentException

    index < 0 or index > (NumVertices−1)

    Remarks

    Sets or gets the x-coordinate of the vertex with the given index.

    Use SetVertex(Int32, Double, Double) and GetVertex(Int32, Double , Double ) to set or get both the x- and y-coordinate at once.

    See Also