这是一个通用方法。任何特定平台的实现限制都会在使用此方法的对象相关主题中列出。
此方法用于访问 FineReader Engine 集合中的单个元素。每个 FineReader Engine 集合都使用此方法。
HRESULT Item(
int Index,
I<ElementType>** Result
);
I<ElementType> Item( int Index );
Function Item(Index As Integer) As I<ElementType>
Index
[in] 该变量包含通过此 method 访问的元素的索引。其值必须在 0 到元素总数减 1 的范围内;元素总数可通过同一 collection 的 Count 属性获取。
Result
[out, retval] 一个 type 为 I<ElementType>* 的变量,用于接收指向 collection 元素接口的指针。ElementType 是构成该 collection 的对象的 type。
此方法没有特定的返回值。其返回 ABBYY FineReader Engine 函数的标准返回值。
下表介绍了提供此方法的各个集合,以及这些集合中元素的类型:
元素
使用集合