跳转到主要内容
这是一个通用方法。任何平台特定的实现限制都会在使用此方法的对象相关主题中列出。
此方法会在集合中的指定位置插入一个现有对象。

语法

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 _
)

参数

Value [in] 此参数包含新插入的元素。其类型取决于集合类型。 Index [in] 此参数指定新插入元素的索引。如果该元素插入到现有元素的位置,集合中的元素会向右顺移。该元素也可以插入到集合末尾;在这种情况下,此参数的值必须等于 Count 属性的值。

返回值

此方法没有特定返回值。它会返回 ABBYY FineReader Engine 函数的标准返回值

说明

下表列出了提供此方法的集合及其包含的元素类型:
集合类型元素类型
IntsCollectionint
OfficeConverters <Note> 仅适用于 Linux 和 Windows。 </Note>OfficeConverterTypeEnum
RegionsCollectionRegion
SpellReplacementCollection <Note> 仅适用于 Windows Visual Components。 </Note>SpellReplacement
SpellWordCollection <Note> 仅适用于 Windows Visual Components。 </Note>SpellWord
StringsCollectionBSTR
TrainingImagesCollectionTrainingImage

另请参阅

使用集合 Add