RectangleAffineCollection setItem Method Cognex VisionPro 9.10

Replace the element at the specified index.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.10.0.0
Syntax

public override void setItem(
	int index,
	RectangleAffine value
)

Parameters

index
Type: System Int32
The zero-based index of the item to replace.
value
Type: Cognex.Vision RectangleAffine
The item that will replace the item at the specified index.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf index is less than zero or index is greater than or equal to Count.
Remarks

ReplacingItem Raises before the item is replaced. ReplacedItem Raises after the item is replaced. Changed Raises because this method changes the Count and Item properties. The following StateFlags may be affected:

  • SfCount
  • SfItem

See Also