MethodMetaCollection Move Method Cognex VisionPro 9.21 SR1

Move the selected item to a new index in this collection.

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

public override void Move(
	int fromIndex,
	int toIndex
)

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

ExceptionCondition
ArgumentOutOfRangeExceptionIf 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