> ## 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 オブジェクトの Item メソッド

> Windows 上の ABBYY FineReader Engine Visual Components における PopupMenu オブジェクトの Item メソッド — このメソッドは、コンテキストメニューのカスタム部分で指定された位置にある要素に対応する MenuItemEnum 定数を返します。...

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

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

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

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

### C\#

```csharp theme={null}
MenuItemEnum Item( int Index );
```

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

```vb theme={null}
Function Item(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)
