Move the selected item to a new index in this collection.
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.21.1.1
Syntax
Parameters
- fromIndex
- Type: System Int32
The index of the item to move.
- toIndex
- Type: System Int32
The index to which the item will be moved.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | If either fromIndex or toIndex is less than zero or is greater than or equal to Count. |
Remarks
MovingItem Raises before the item is moved. MovedItem Raises after the item is moved. Changed Raises because this method changes the Item property. The following StateFlags may be affected:
- SfItem
See Also