Insert the given item at the specified index.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax
Parameters
- index
- Type: System Int32
The zero-based index at which to insert the item.
- value
- Type: Cognex.Vision IGraphic
The item to be inserted into the collection.
Implements
IList T Insert(Int32, T)Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If index is less than zero or index is greater than Count. |
Remarks
InsertingItem Raises before the item is inserted. InsertedItem Raises after the item is inserted. Changed Raises because this method changes the Count and Item properties. The following StateFlags may be affected:
- SfCount
- SfItem
See Also