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

語法

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

參數

[in] 此參數包含新插入的元素。其類型取決於集合的類型。 索引 [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