跳轉到主要內容
這是通用方法。任何特定平台實作上的限制,都會列在使用此方法的物件主題中。
此方法會在集合中的指定位置插入現有物件。

語法

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] 此 Parameter 包含新插入的元素。其型別取決於集合的型別。 Index [in] 此 Parameter 指定新插入元素的索引。若元素插入至現有元素的位置,集合中的元素將向右移位。元素也可插入至集合末尾,此時此 Parameter 的值必須等於 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