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

# Commands オブジェクトの DoCommand メソッド

> Windows 上の ABBYY FineReader Engine Visual Components における Commands オブジェクトの DoCommand メソッド — このメソッドは、指定したコマンドを同期モードまたは非同期モードで実行します。

このメソッドは、指定したコマンドを同期モードまたは非同期モードで実行します。

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

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

```cpp theme={null}
HRESULT DoCommand(
  MenuItemEnum Value,
  VARIANT_BOOL DoSynchronously
);
```

### C\#

```csharp theme={null}
void DoCommand(
  MenuItemEnum Value,
  bool         DoSynchronously
);
```

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

```vb theme={null}
Sub DoCommand( _
  Value As MenuItemEnum, _
  DoSynchronously As Boolean _
)
```

<div id="parameters">
  ## パラメーター
</div>

Value

\[in] 実行するコマンドを [MenuItemEnum](/ja/fine-reader/engine/visual-components-reference/enumerations/menuitemenum) 定数として指定します。使用可能なコマンドの一覧は次のとおりです。

[Image Viewer のコマンド](/ja/fine-reader/engine/visual-components-reference/imageviewer/image-viewer-commands)<br />[Zoom Viewer のコマンド](/ja/fine-reader/engine/visual-components-reference/zoomviewer/zoom-viewer-commands)<br />[Document Viewer のコマンド](/ja/fine-reader/engine/visual-components-reference/documentviewer/document-viewer-commands)<br />[Text Editor のコマンド](/ja/fine-reader/engine/visual-components-reference/texteditor/text-editor-commands)

DoSynchronously

\[in] このメソッドを同期的に実行するかどうかを指定します。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準の戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[Commands](/ja/fine-reader/engine/visual-components-reference/supplementary-objects/commands)
