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

語法

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

另請參閱

使用集合