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

# Batch オブジェクトの MoveDocument メソッド

このメソッドは、別のバッチからこのバッチにドキュメントを移動します。たとえば、学習を行うために、作業バッチから学習用バッチへドキュメントを移動する場合などに使用します。

> [!NOTE]
>
> このメソッドを呼び出すと、移動したドキュメントと、それに伴って次の位置にずれたドキュメントの両方が使用できなくなります。これらのドキュメントを引き続き操作するには、再度開いてください。

## 構文

```vb Visual Basic .NET theme={null}
Sub MoveDocument( _
  DocumentToMove As Document, _
  InsertionPoint As Document _
)
```

```cpp C++ theme={null}
HRESULT MoveDocument(
  IDocument*  DocumentToMove,
  IDocument*  InsertionPoint
);
```

## パラメーター

**DocumentToMove**

\[in] 移動するドキュメントを格納している [**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md) オブジェクトを指定します。

**InsertionPoint**

\[in] バッチ内で新しいドキュメントの挿入先となる位置にある [**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md) オブジェクトを指定します。このパラメーターで指定したドキュメントは、バッチ内の次の位置にずれます。
新しいドキュメントを末尾に挿入する場合は、このパラメーターに NULL を渡すことができます。

## 戻り値

このメソッドに固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md)
