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

# IMainWindow

> IMainWindow は、FlexiCapture ステーションのメインウィンドウをスクリプトで利用できるようにします。コマンドを有効または無効にしたり、メインメニュー、ツールバー、選択範囲、ユーザーロールを取得したりできます。

<div id="what-it-does">
  ## 概要
</div>

メインウィンドウを表します。

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

| **定義**                                                                                                  | **説明**                                         |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| CommandIsEnabled( commandId: [TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid) ) : bool | コマンドが有効な場合は **true** を、無効な場合は **false** を返します。 |
| EnableCommand( commandId: [TCommandID](/ja/flexi-capture/appendix/scripts-shell/tcommandid), bool)      | GUI でコマンドを使用可能または使用不可にします。                     |

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

| **名前**         | **型**                                                                       | **アクセス** | **説明**       |
| -------------- | --------------------------------------------------------------------------- | -------- | ------------ |
| Handle         | int                                                                         | 読み取り専用   | ウィンドウのハンドル   |
| MainMenu       | [IMainMenu](/ja/flexi-capture/appendix/scripts-shell/imainmenu)             | 読み取り専用   | メインメニュー      |
| Selection      | [ISelection](/ja/flexi-capture/appendix/scripts-shell/iselection)           | 読み取り専用   | 選択範囲         |
| TaskWindow     | [ITaskWindow](/ja/flexi-capture/appendix/scripts-shell/itaskwindow)         | 読み取り専用   | タスク ウィンドウ    |
| Toolbars       | [IToolbars](/ja/flexi-capture/appendix/scripts-shell/itoolbars)             | 読み取り専用   | ツールバーのコレクション |
| UserRole       | [TUserRole](/ja/flexi-capture/appendix/scripts-shell/tuserrole)             | 読み取り専用   | ユーザーロール      |
| WorkWindowType | [TWorkWindowType](/ja/flexi-capture/appendix/scripts-shell/tworkwindowtype) | 読み取り専用   | 作業ウィンドウの型    |
