CogLineSegment SetStartEnd Method Cognex VisionPro 9.8
Sets coordinates StartX, StartY, EndX, EndY for the line segment.

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

public void SetStartEnd(
	double startX,
	double startY,
	double endX,
	double endY
)
Events

Event TypeReason
CogLineSegment Changed

Fires when the value of this property changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    CogShapeCoordinatesMustDifferException

    Start and endpoint coordinates must be different.

    Remarks

    Sets coordinates StartX, StartY, EndX, EndY for the line segment.

    See Also