CogReadOnlyBoolRange Constructor (Int32, Int32, Boolean)Cognex VisionPro 9.8 SR1
Constructs an initialized inclusive, read-only range of indices and the boolean value each of the indices within the range contains.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 75.0.0.0
Syntax

public CogReadOnlyBoolRange(
	int firstIndex,
	int lastIndex,
	bool value
)

Parameters

firstIndex
Type: System Int32
The starting index of the inclusive range represented by the constructed CogReadOnlyBoolRange. Must be greater than or equal to zero and less than or equal to lastIndex.
lastIndex
Type: System Int32
The ending index of the inclusive range represented by the constructed CogReadOnlyBoolRange. Must be greater than or equal to firstIndex.
value
Type: System Boolean
The boolean value represented by the constructed CogReadOnlyBoolRange.
Exceptions

ExceptionCondition
IndexOutOfRangeExceptionfirstIndex is less than zero or greater than lastIndex.
See Also