跳转到主要内容
这是一个通用属性。任何平台特定的实现限制,都会在使用此属性的对象对应主题中列出。
此属性用于访问 ABBYY FineReader Engine 集合中的单个元素。每个 ABBYY FineReader Engine 集合都使用此属性。
在 Windows 中,此属性允许你在 C# 中使用 [] 运算符访问集合中的元素。

语法

C++

HRESULT get_Element(
  int              Index,
  I<ElementType>** Result
);
// "put" 方法仅适用于某些 collections
HRESULT put_Element(
  int             Index,
  I<ElementType>* Value
);

C#

I<ElementType> <CollectionType>( int Index );

Visual Basic .NET

Property Element(Index As Integer) As I<ElementType>

参数

Index [in] 此变量包含通过此 method 访问的元素的 index。其取值范围必须为 0 到元素数量减 1,其中元素数量可通过同一 collection 的 Count 属性获取。 Result [out, retval] 一个 type 为 I<ElementType>* 的变量,用于接收指向 collection 元素接口的指针。ElementType 是构成该 collection 的 object 的 type。 Value [in] 指代 <ElementType> object。ElementType 是构成该 collection 的 object 的 type。

备注

下表列出了提供此属性的集合及其元素类型:

另请参阅

Item 使用集合 使用属性