> ## 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 represents a single menu item in FlexiCapture station scripts: read its command ID, change its text, enable or disable it, and open its submenu.

## What it does

Represents a menu item.

## Properties

<table width="100%"><thead><tr><th><p><strong>Name</strong></p></th><th><p><strong>Type</strong></p></th><th><p><strong>Access</strong></p></th><th><p><strong>Description</strong></p></th></tr></thead><tbody><tr><td><p>Command</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a></p></td><td><p>Read-only</p></td><td><p>The command identifier. For a submenu title, <strong>CI\_SubMenu</strong> is returned. For a separator, <strong>CI\_Separator</strong> is returned.</p><p>If there is no identifier for a command among <a href="/flexi-capture/appendix/scripts-shell/tcommandid">TCommandID</a> values, <strong>CI\_Undefined</strong> is returned.</p></td></tr><tr><td><p>Enable</p></td><td><p>bool</p></td><td><p>Read/write</p></td><td><p>Specifies whether to enable menu items.</p><p>If the property is set to <strong>false</strong>, all menu items with the specified identifier (the <strong>Command</strong> property) will be disabled.</p><p>If the property is set to <strong>true</strong>, enabling menu items depends on the internal logic of the program.</p><p>For separators and submenu titles, the property is always <strong>true</strong>.</p></td></tr><tr><td><p>Submenu</p></td><td><p><a href="/flexi-capture/appendix/scripts-shell/imenu">IMenu</a></p></td><td><p>Read-only</p></td><td><p>The submenu. If a submenu is missing, <strong>null</strong> is returned.</p></td></tr><tr><td><p>Text</p></td><td><p>string</p></td><td><p>Read/write</p></td><td><p>The text of the menu item.</p><p><strong>Note: </strong> The property does not allow changing text for the menu bar items: <strong>File</strong>, <strong>Edit</strong>, <strong>View</strong>, etc.</p></td></tr></tbody></table>
