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

語法

C++

HRESULT Add( I<ElementType>* Value );

C#

void Add( I<ElementType> Value );

Visual Basic .NET

Sub Add(Value As I<ElementType>)

Parameters

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

傳回值

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

備註

下表說明哪些集合提供此方法,以及這些集合中元素的類型:

範例

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

另請參閱

使用集合