Sets the given inclusive range of list elements to the given boolean value.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 85.1.0.0
Syntax
Parameters
- firstIndex
- Type: System Int32
The starting index of the inclusive range to set to a single boolean value. 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 to set to a single boolean value. Must be greater than or equal to firstIndex and less than Count.
- value
- Type: System Boolean
The boolean value to set the specificed inclusive range of list elements to.
Exceptions
| Exception | Condition |
|---|---|
| IndexOutOfRangeException | firstIndex is less than zero or greater than lastIndex; or lastIndex is less than firstIndex or greater than or equal to Count. |
Remarks
A range may include list elements that are already of the specified boolean value. In this circumstance, those values remain unchanged.
Changing the value of any list element will invalidate the returned list from the GetRangeList method. The method must be called again to obtain an accurate set of ranges.
See Also