> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PopupMenu オブジェクトの Element プロパティ

> Windows 上の ABBYY FineReader Engine Visual Components における PopupMenu オブジェクトの Element プロパティ — このプロパティは、指定したインデックスを持つコンテキストメニューのカスタム部分の要素に対応する MenuItemEnum 定数を返します...

このプロパティは、コンテキストメニューのカスタム部分にある、指定したインデックスの要素に対応する [MenuItemEnum](/ja/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) 定数を返します。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT Element(
  int           Index,
  MenuItemEnum* Result
);
```

### C\#

```csharp theme={null}
SpellReplacement get_Element( int Index );
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
ReadOnly Property Element(Index As Integer) As MenuItemEnum
```

<div id="parameters">
  ## パラメーター
</div>

Index

\[in] コンテキスト メニューのカスタム部分内にある要素のインデックスを指定します。0 以上 [IPopupMenu::Count](/ja/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu#count) プロパティの値から 1 を引いた値以下の範囲でなければなりません。

Result

\[out, retval] 指定したインデックスの要素に対応する [MenuItemEnum](/ja/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) 定数を受け取ります。

<div id="return-values">
  ## 戻り値
</div>

このプロパティに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準の戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[PopupMenu](/ja/fine-reader/engine/visual-components-reference/supplementary-objects/popupmenu)
