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

# Engine オブジェクトの LoadModule メソッド

> ABBYY FineReader Engine API の Engine オブジェクトの LoadModule メソッド — FineReader Engine の機能モジュール（Image Support、Export、Recognizer、ICR、PDF、FRE Processor、言語パターン モジュール、Business Card、Shared Libraries）のいずれか 1 つをロードします。

ABBYY FineReader Engine には、複数の機能モジュールがあります。

* 画像を開くための Image Support
* 認識結果をエクスポートするための Export
* 印字テキストを認識するための Recognizer
* 手書き文字/手書き活字文字の認識およびチェックマーク認識のための ICR
* PDF ファイルを処理するための PDF
* Windows および Linux で並列認識を行うための FineReader Engine Processor
* 繁体字中国語のテキストを認識するための Chinese Traditional Patterns
* 簡体字中国語のテキストを認識するための Chinese Simplified Patterns
* 日本語のテキストを認識するための Japanese Patterns
* 韓国語および韓国語 (Hangul) のテキストを認識するための Korean Patterns
* ヨーロッパ言語のテキストを認識するための European Patterns
* 名刺を認識するための Business Card
* 内部技術のための Shared Libraries

既定では、これらのモジュールは必要に応じてロードされます。これらの機能のいずれかに対応するメソッドが初めて呼び出されると、対応するモジュールがロードされます。たとえば、いずれかのエクスポート メソッドが呼び出されると、Export モジュールがロードされます。

LoadModule メソッドを使用すると、アプリケーションの動作に必要なモジュールをロードすることができます。"

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

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

```cpp theme={null}
HRESULT LoadModule( FREngineModuleEnum LoadFlags );
```

### C\#

```csharp theme={null}
void LoadModule( FREngineModuleEnum LoadFlags );
```

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

```vb theme={null}
Sub LoadModule(LoadFlags As FREngineModuleEnum)
```

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

LoadFlags

\[in] [FREngineModuleEnum](/ja/fine-reader/engine/api-reference/enumerations/frenginemoduleenum) 型のこの変数は、ロードするモジュールを指定します。

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

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

<div id="samples">
  ## サンプル
</div>

<Accordion title="C# コード">
  ```csharp theme={null}
  // エンジンを読み込む
  FREngine.IEngine engine;
  ...
  // ウォームアップ
  engine.LoadModule(FREngine.FREngineModuleEnum.FREM_ImageSupport);
  engine.LoadModule(FREngine.FREngineModuleEnum.FREM_Recognizer);
  engine.LoadModule(FREngine.FREngineModuleEnum.FREM_EuropeanPatterns);
  ```
</Accordion>

このメソッドは、次の Windows 向けデモツールで使用されています：[BatchProcessingRecognition](/ja/fine-reader/engine/guided-tour/samples#batchprocessingrecognition), [Engine Predefined Processing Profiles](/ja/fine-reader/engine/guided-tour/samples#engine_predefined_processing_profiles), [MultiProcessingRecognition](/ja/fine-reader/engine/guided-tour/samples#multiprocessingrecognition)。

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

[Engine](/ja/fine-reader/engine/api-reference/engine-object-iengine-interface)
