Skip to main content
This is a common method. Any platform-specific implementation limitations will be listed in the topics for the objects using this method.
This method inserts an existing object at the specified position in the collection.

Syntax

C++

HRESULT InsertAt(
  I<ElementType>* Value,
  int             Index
);

C#

void InsertAt(
  I<ElementType> Value,
  int           Index
);

Visual Basic .NET

Sub InsertAt( _
  Value As I<ElementType>, _
  Index As Integer _
)

Parameters

Value [in] This parameter contains the newly inserted element. Its type depends on the type of collection. Index [in] This parameter specifies the index of the newly inserted element. If the element is inserted in place of the existing element, the elements of the collection are shifted to the right. The element may also be inserted at the end of collection, in which case the value of this parameter must be equal to the value of the Count property.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

Remarks

The table below describes the collections which provide this method and the types of elements in the collections:
Collection typeElement type
IntsCollectionint
OfficeConverters <Note> Linux and Windows only. </Note>OfficeConverterTypeEnum
RegionsCollectionRegion
SpellReplacementCollection <Note> Windows Visual Components Only. </Note>SpellReplacement
SpellWordCollection <Note> Windows Visual Components Only. </Note>SpellWord
StringsCollectionBSTR
TrainingImagesCollectionTrainingImage

See also

Working with Collections Add