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

語法

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