跳轉到主要內容
這是通用方法。任何平台特定的實作限制,都會列在使用此方法之物件主題的開頭。
此方法會將現有物件加入集合末尾。

語法

C++

HRESULT Add( I<ElementType>* Value );

C#

void Add( I<ElementType> Value );

Visual Basic .NET

Sub Add(Value As I<ElementType>)

參數

Value [in] 包含新加入的元素。ElementType 是組成集合之物件的類型。

傳回值

此方法沒有特定的傳回值,而是傳回 ABBYY FineReader Engine 函式的標準傳回值

備註

下表說明哪些集合提供此方法,以及這些集合中的元素類型:
集合類型元素類型
ClassificationObjectsClassificationObject
IntsCollectionint
OfficeConverters <Note> 注意:此集合已針對 Windows 和 Linux 實作。 </Note>OfficeConverterTypeEnum
RegionsCollectionRegion
SpellReplacementCollection <Note> 注意:此集合僅適用於 Windows。 </Note>SpellReplacement
StringsCollectionBSTR
TrainingImagesCollectionTrainingImage

範例

 
for( int i = 0; i < Document.Pages.Count; i++ )
{
 if( Document.Pages[i].PageStructureOutOfDate )
 {
  pageIndices.Add( i );
 }
}
此方法會用於以下程式碼範例:VisualComponents (Win) 。

另請參閱

使用集合