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

# IMenuItem

> IMenuItem は、FlexiCapture ステーションのスクリプト内で単一のメニュー項目を表します。command ID を取得し、テキストを変更し、有効化または無効化して、サブメニューを開くことができます。

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

メニュー項目を表します。

<div id="properties">
  ## プロパティ
</div>

<table width="100%">
  <thead>
    <tr>
      <th>
        <p>
          <strong>名前</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>型</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>アクセス</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>説明</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>Command</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a>
        </p>
      </td>

      <td>
        <p>読み取り専用</p>
      </td>

      <td>
        <p>
          コマンドの識別子です。サブメニューのタイトルの場合は、<strong>CI\_SubMenu</strong> が返されます。区切り線の場合は、<strong>CI\_Separator</strong> が返されます。
        </p>

        <p>
          コマンドに対応する識別子が <a href="/ja/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a> の値にない場合は、<strong>CI\_Undefined</strong> が返されます。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Enable</p>
      </td>

      <td>
        <p>bool</p>
      </td>

      <td>
        <p>読み取り/書き込み</p>
      </td>

      <td>
        <p>メニュー項目を有効にするかどうかを指定します。</p>

        <p>
          このプロパティが <strong>false</strong> に設定されている場合、指定した識別子 (<strong>Command</strong> プロパティ) を持つすべてのメニュー項目は無効になります。
        </p>

        <p>
          このプロパティが <strong>true</strong> に設定されている場合、メニュー項目が有効になるかどうかはプログラムの内部ロジックに依存します。
        </p>

        <p>
          区切り線とサブメニューのタイトルでは、このプロパティは常に <strong>true</strong> です。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Submenu</p>
      </td>

      <td>
        <p>
          <a href="/ja/flexi-capture/appendix/scripts-shell/imenu">IMenu</a>
        </p>
      </td>

      <td>
        <p>読み取り専用</p>
      </td>

      <td>
        <p>
          サブメニューです。サブメニューが存在しない場合は、<strong>null</strong> が返されます。
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>Text</p>
      </td>

      <td>
        <p>string</p>
      </td>

      <td>
        <p>読み取り/書き込み</p>
      </td>

      <td>
        <p>メニュー項目のテキストです。</p>

        <p>
          <strong>注:</strong> このプロパティでは、メニューバー項目 <strong>File</strong>、<strong>Edit</strong>、<strong>View</strong> などのテキストは変更できません。
        </p>
      </td>
    </tr>
  </tbody>
</table>
