> ## 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.

# IMenu

> IMenu コレクションを使用して FlexiCapture のステーション メニューをカスタマイズできます。TCommandID コマンド識別子で識別されるメニュー項目の追加、挿入、検索、削除を行えます。

<div id="what-it-does">
  ## 説明
</div>

[IMenuItem](/ja/flexi-capture/appendix/scripts-shell/imenuitem) オブジェクトのコレクションです。メニューまたはサブメニューを表します。

<div id="methods">
  ## メソッド
</div>

| **定義**                                                                                                                                                                                    | **説明**                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AppendItem( commandId : [TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid), text : string ) : [IMenuItem](/ja/flexi-capture/appendix/scripts-shell/imenuitem)              | コマンド識別子 **commandId** とテキスト **Text** を持つメニュー項目を、メニューの末尾に追加します。対応する要素の [IMenuItem](/ja/flexi-capture/appendix/scripts-shell/imenuitem) オブジェクトを返します。[TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid) 列挙体の任意の識別子を使用できます (**CI\_SubMenu** および **CI\_Separator** を含む) が、**CI\_Undefined** は除きます。**CI\_Separator** の場合、**Text** Parameter は無視されます。         |
| Delete( index : int )                                                                                                                                                                     | コレクション 内の index で指定した要素を削除します。                                                                                                                                                                                                                                                                                                                                        |
| Find( commandId : [TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid) ) : int                                                                                               | コレクション 内で、指定したコマンドの ID を持つ最初のオブジェクトの index を検索します。                                                                                                                                                                                                                                                                                                                    |
| InsertItem( index : int, commandId : [TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid), text : string ) : [IMenuItem](/ja/flexi-capture/appendix/scripts-shell/imenuitem) | コマンド識別子 **commandId** とテキスト **Text** を持つメニュー項目を、メニュー内の位置 Index に挿入します。対応する要素の [IMenuItem](/ja/flexi-capture/appendix/scripts-shell/imenuitem) オブジェクトを返します。[TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid) 列挙体の任意の識別子を使用できます (**CI\_SubMenu** および **CI\_Separator** を含む) が、**CI\_Undefined** は除きます。**CI\_Separator** の場合、**Text** Parameter は無視されます。 |
