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

# Field オブジェクト（IField インターフェイス）

このオブジェクトは、文書の field に対応します。field は、データ抽出を目的とした文書の要素です。field には、単純なもの (内部構造を持たないもの) と複合的なものがあります。複合的な field の例としてはテーブルフィールドがあり、その各セルはテーブルに属する個別の下位 field と見なすことができます。詳細については、[認識データの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/workingwithrecognizeddata.md)を参照してください。

field は複数のインスタンス (**Instances** プロパティ) を持つことができます。つまり、その field は同一オブジェクトの複数のバリエーションを記述するために使用されます。実質的には、これらの複数のオブジェクトは同一の field であり、同じプロパティを共有します。

各文書フィールドは、文書に適用された Document Definition の field に対応します (文書定義フィールドには **FieldDefinition** プロパティからアクセスできます) 。

## Properties

<table width="100%">
  <thead>
    <tr>
      <th>
        **名前**
      </th>

      <th>
        **型**
      </th>

      <th>
        **説明**
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **Blocks**
      </td>

      <td>
        [**BlocksCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockscollection.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        fieldに対応するブロックのコレクションを格納します。
      </td>
    </tr>

    <tr>
      <td>
        **Children**
      </td>

      <td>
        [**Fields**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fields.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        複合 field の子 field のコレクションを返します。
      </td>
    </tr>

    <tr>
      <td>
        **Document**
      </td>

      <td>
        [**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)
      </td>

      <td>
        この field を含むドキュメントにアクセスできます。
      </td>
    </tr>

    <tr>
      <td>
        **FieldDefinition**
      </td>

      <td>
        [**FieldDefinition**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fielddefinition.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        ドキュメントに適用されている Document Definition 内の、対応する field を返します。
      </td>
    </tr>

    <tr>
      <td>
        **FieldRegions**
      </td>

      <td>
        [**FieldRegions**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldregions.md)

        、読み取り専用
      </td>

      <td>
        対応するページ上のフィールド領域のコレクションを返します。
      </td>
    </tr>

    <tr>
      <td>
        **FullName**
      </td>

      <td>
        [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)

        、読み取り専用
      </td>

      <td>
        field のフルネームを返します。この field が複合 field のサブ field である場合、フルネームにはその field の名前と、すべての親 field の名前が含まれます。field が
        別の field のインスタンスである場合、フルネームには親 field 内でのインデックスが含まれます。例: "Invoice\InvoiceTable\[0]\Quantity"。field が単純 field の場合、この
        プロパティの値は **Name** プロパティの値と等しくなります。
      </td>
    </tr>

    <tr>
      <td>
        **Instances**
      </td>

      <td>
        [**FieldInstances**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldinstances.md)

        , [読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        fieldのインスタンスのコレクションを返します (インスタンスが複数あるfieldの場合) 。
      </td>
    </tr>

    <tr>
      <td>
        **LinkedDocument**
      </td>

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

        、読み取り専用
      </td>

      <td>
        **Type** プロパティが FT\_DocumentLinkField に設定されている場合は、関連付けられたドキュメントを返します。**Type** プロパティが FT\_LinkField に設定されている場合は、リンクされたフィールドを
        含むドキュメントを返します。それ以外の場合は NULL を返します。
      </td>
    </tr>

    <tr>
      <td>
        **LinkedField**
      </td>

      <td>
        **Field**、読み取り専用
      </td>

      <td>
        **Type** プロパティが FT\_LinkField に設定されている場合は、別のドキュメントのリンクされたフィールドを返します。それ以外の場合は NULL を返します。

        **重要:** リンクされたフィールドは、そのフィールドを含むドキュメントが開かれている場合にのみ返されます。リンクされたフィールドを安全に取得するには、次の手順を実行してください。

        <ul>
          <li>
            **LinkedDocument** プロパティを使用して、リンクされたフィールドを含むドキュメントを取得します
          </li>

          <li>
            ドキュメントの **LockType** プロパティを確認して、そのステータスを取得します
          </li>

          <li>必要に応じてドキュメントを開きます</li>

          <li>
            現在のフィールドの **LinkedField** を使用して、別のドキュメントのリンクされたフィールドを取得します
          </li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>
        **Name**
      </td>

      <td>
        [**String**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)

        、読み取り専用
      </td>

      <td>
        fieldの名前を返します。
      </td>
    </tr>

    <tr>
      <td>
        **OriginalField**
      </td>

      <td>
        **Field**、読み取り専用
      </td>

      <td>
        **Type** プロパティが FT\_MirrorField に設定されている場合は、現在のドキュメントの関連付けられた field を返します。それ以外の場合は NULL を返します。

        **重要:**&#x20;

        <ul>
          <li>元のフィールドには、別のドキュメントまたは field へのリンクが含まれている場合があります。元のフィールドを取得する前に、その型を確認してください。</li>
          <li>FT\_MirrorField 型のフィールドは編集しないでください。代わりに元のフィールドを編集してください。</li>
        </ul>
      </td>
    </tr>

    <tr>
      <td>
        **Suggests**
      </td>

      <td>
        [**StringsCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/stringscollection.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        field 値の候補を格納したコレクションを返します。
      </td>
    </tr>

    <tr>
      <td>
        **Type**
      </td>

      <td>
        [**FieldTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldtypeenum.md)

        、読み取り専用
      </td>

      <td>
        fieldの型を返します。
      </td>
    </tr>

    <tr>
      <td>
        **Value**
      </td>

      <td>
        [**FieldValue**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldvalue.md)

        、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties)
      </td>

      <td>
        field 値を返します。
      </td>
    </tr>
  </tbody>
</table>

## メソッド

| **名前** | **説明** |
| - | - |
| [**ApplySuggest**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field-applysuggest.md) | fieldの値の候補から1つを選択できます。 |

## 関連オブジェクト

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

## 出力パラメーター

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

* [**Fields**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fields.md) オブジェクトの [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) メソッド、[**FindByName**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fields-findbyname.md) メソッド
* [**FieldInstances**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldinstances.md) オブジェクトの [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) メソッド、[**AddNew**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/fieldinstances-addnew.md) メソッド

## 入力パラメーター

このオブジェクトは、次のメソッドの入力パラメーターとして使用されます。

* [**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md) オブジェクトの [**CheckRules**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document-checkrules.md) メソッド
* [**Page**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/page.md) オブジェクトの [**SetFieldRegion**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/page-setfieldregion.md) メソッド

## サンプル

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

## 関連項目

[認識データの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/workingwithrecognizeddata.md)

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

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

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