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

# Documents オブジェクトの Merge メソッド

このメソッドは、指定したドキュメントを 1 つのドキュメントに結合します。戻り値は、閉じた状態のドキュメント (**IDocument::LockType** = [LT\_None](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/locktypeenum.md)) です。

## 構文

```vb Visual Basic .NET theme={null}
Function Merge(DocIds As IntsCollection) As Document
```

```cpp C++ theme={null}
HRESULT Merge(
  IIntsCollection* DocIds,
  IDocument**       Result
);
```

## パラメーター

**DocIds**

\[in] この変数は、結合するドキュメントの識別子を格納した [**IntsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/intscollection.md) オブジェクトを参照します。

**Result**

\[out, retval] 作成されたドキュメントのインターフェースポインターを受け取る [**IDocument**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md)\*\*\*\*\* 変数へのポインター。

## 戻り値

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

## 関連項目

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