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

# StringsCollection オブジェクト (IStringsCollection インターフェイス)

このオブジェクトは文字列のコレクションを表し、標準的なコレクション機能を提供します。パラメーターを必要とする ABBYY FlexiCapture SDK の関数に対して、パラメーターを渡すための格納先として使用されます。また、ABBYY FlexiCapture SDK のメソッドの戻り値として返される場合もあります。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| [**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) | [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md) | コレクションの 1 つの要素にアクセスできます。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**Add**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/add.md) | コレクションの末尾に新しい要素を追加します。 |
| [**CopyFrom**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/copyfrom.md) | 現在のオブジェクトのプロパティを、別のオブジェクトの対応するプロパティの値で初期化します。 |
| [**DeleteAt**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteat.md) | コレクションから要素を削除します。 |
| [**DeleteAll**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteall.md) | コレクションからすべての要素を削除します。 |
| [**InsertAt**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/insert.md) | コレクション内の指定した位置に新しい要素を挿入します。 |
| [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) | コレクション内の 1 つの要素にアクセスします。 |

## 出力パラメーター

このオブジェクトは、次のメソッドおよびプロパティで出力パラメーターとして使用されます。

* [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**AddImages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-addimages.md) メソッド、および [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md#warnings) プロパティ
* [**ConfusionMatrix**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/confusionmatrix.md) オブジェクトの [**ClassNames**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/confusionmatrix.md#classnames) プロパティ
* [**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateStringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッド
* [**Project**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md) オブジェクトの [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/project.md#warnings) プロパティ
* [**DocumentDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md) オブジェクトの [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinition.md#warnings) プロパティ
* [**SectionDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/sectiondefinition.md) オブジェクトの [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/sectiondefinition.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/sectiondefinition.md#warnings) プロパティ
* [**FieldValue**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldvalue.md) オブジェクトの [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldvalue.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldvalue.md#warnings) プロパティ
* [**VerificationSession**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/verificationsession.md#errors) オブジェクトの [**Errors**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/verificationsession.md#errors) および [**Warnings**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/verificationsession.md#warnings) プロパティ
* [**Field**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md) オブジェクトの [**Suggests**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md#suggests) プロパティ
* [**LookUpResult**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/lookupresult.md) オブジェクトの [**GetRow**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/lookupresult-getrow.md) メソッド、および [**ColumnsNames**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/lookupresult.md#columnsnames) プロパティ
* [**Country**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/country.md) オブジェクトの [**Languages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/country.md#languages) プロパティ
* [**InvoiceFeature**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/invoicefeature.md) オブジェクトの [**FeatureFields**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/invoicefeature.md#featurefields) プロパティ
* [**TaxGroup**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/taxgroup.md) オブジェクトの [**TaxNames**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/taxgroup.md#taxnames) プロパティ

## 入力パラメーター

このオブジェクトは、次のメソッドの入力パラメーターです。

* [**Batch**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch.md) オブジェクトの [**AddImages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/batch-addimages.md) メソッド
* [**DocumentDefinitions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions.md) オブジェクトの [**AddNewFixed**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/documentdefinitions-addnewfixed.md) メソッド

## サンプル

> [accordion] C++ (COM) コード
>
> ```cpp theme={null}
> // グローバルな ABBYY FlexiCapture SDK の Engine オブジェクト。
> FCEngine::IEnginePtr Engine;
> ...
> // コレクションを作成し、文字列を追加します
> FCEngine::IStringsCollectionPtr fileList = Engine->CreateStringsCollection();
> fileList->Add( L"D:\\SampleImages\\0001.tif" );
> fileList->Add( L"D:\\SampleImages\\0002.tif" );
> fileList->Add( L"D:\\SampleImages\\0003.tif" );
> ...
> // このコレクションを任意のメソッドの入力パラメーターとして使用します。
> // ここでは、Batch オブジェクトへのポインターを既に取得しているものとします。
> FCEngine::IStringsCollectionPtr passwordProtected;
> FCEngine::IIntsCollectionPtr docIdList = batch->AddImages( fileList, -1, 0, 0, &passwordProtected );
> ```

## サンプル

このオブジェクトは、次のコード サンプルで使用されています：[Fixed Forms](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#fixedforms)

## 関連項目

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

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