> ## 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 オブジェクト（IDocuments インターフェイス）

このオブジェクトは、バッチ内のドキュメントのコレクションです。標準的なコレクションのメソッドとプロパティに加えて、コレクション内のドキュメントを管理する (移動、結合、分割) ためのメソッドを備えています。このオブジェクトのプロパティおよびメソッドは、閉じられたドキュメント (**IDocument::LockType** = [LT\_None](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/locktypeenum.md)) を返します。特定のバッチのドキュメントのコレクションを取得するには、対応する [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの **Documents** プロパティを使用します。

**Documents** オブジェクトは、いわゆる「[接続可能なオブジェクト](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/connectableobjects.md)」です。**Documents** オブジェクトのメソッドは、専用の発信インターフェースを通じてコレクションの変更に関する情報を通知します。これらのインターフェースは、[**ICollectionEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/icollectionevents.md) (C++ 用) とディスパッチインターフェイス [**DICollectionEvents**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/icollectionevents.md) (Visual Basic 用) です。なお、Visual Basic にはイベントを簡単に処理する仕組みが用意されているため、Visual Basic のユーザーはイベントインターフェイスの実装の詳細を意識する必要はありません。

## Properties

| **Name** | **型** | **Description** |
| - | - | - |
| [**Count**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | コレクション内の要素数を格納します。 |
| [**Element**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/element.md) | [**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | コレクション内の 1 つの要素にアクセスできます。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**AddNewFromPage**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-addnewfrompage.md) | 既存のドキュメントから指定したページを取り出し、バッチ内の指定した位置に新しいドキュメントを作成します。 |
| [**FindById**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-findbyid.md) | 要素の識別子を指定して、コレクションの要素にアクセスします。 |
| [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) | コレクションの 1 つの要素にアクセスします。 |
| [**DeleteById**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deletebyid.md) | 指定した識別子を持つ要素をコレクションから削除します。 |
| [**DeleteAll**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteall.md) | コレクションからすべての要素を削除します。 |
| [**Disassemble**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-disassemble.md) | 指定したドキュメントをページ単位に分割します。 |
| [**Merge**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-merge.md) | 指定したドキュメントを 1 つのドキュメントに結合します。 |
| [**MoveById**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documents-movebyid.md) | 指定したドキュメントの位置を変更します。 |

## 関連オブジェクト

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/Documents.gif?s=05f0447357bb012e72267f0b1f709ab1)

## サンプル

このオブジェクトは、次のコード サンプルで使用されています：[分類](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#classification)、[請求書の処理と学習](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining)。

## 関連項目

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

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

[コレクションの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/collections.md)

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

[接続可能なオブジェクトの使用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/connectableobjects.md)

[Properties の操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
