跳转到主要内容
这是一个常用方法。使用此方法的对象,其主题顶部会列出所有特定于平台的实现限制。
此方法将现有对象添加到集合末尾。

语法

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

另请参阅

集合的使用