CogDisplay TouchDistance Property Cognex VisionPro 9.5
Gets or sets the touch distance in pixels.

Namespace: Cognex.VisionPro.Display
Assembly: Cognex.VisionPro.Display.Controls (in Cognex.VisionPro.Display.Controls.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax

public virtual int TouchDistance { get; set; }

Property Value

Type: Int32
The touch distance.
Exceptions

ExceptionCondition
CogException Thrown when the value is less than 1.
AxHost InvalidActiveXStateException Thrown when the display control is invalid.
Remarks

The touch distance is the minimum number of pixels within which the mouse must be from an interactive graphic to be considered touching the graphic.

See Also