UInt16Collection Insert Method Cognex VisionPro 9.10

Insert the given item 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 Insert(
	int index,
	ushort value
)

Parameters

index
Type: System Int32
The zero-based index at which to insert the item.
value
Type: System UInt16
The item to be inserted into the collection.

Implements

IList T  Insert(Int32, T)
Exceptions

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