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

語法

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