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

> ラベル付き field は、名前付き field を検索する複合要素です。ラベル テキスト、field の位置、および数値、日付、電話番号などの内容の型を設定します。

**ラベル付き field** は、プログラムが名前を持つ field を検索するために使用する複合要素です。

**ラベル付き field** 要素には、次のサブ要素が含まれます。

* field の名前を含む **Static Text**。
* 名前と field のデータの間の空白を表す [White Gap](/ja/flexi-capture/fls/template/white-gap)。
* field の内容を表す要素。その型は、field の内容の型によって異なります。

**ラベル付き field** 要素は、ツリー内で <img src="https://mintcdn.com/abbyy/lqYknuOmCa79141v/images/flexi-capture/fls/el_labeled_field.gif?s=091e7c3de5c40f31ed7e33731998f065" alt="ラベル付き field 要素アイコン" style={{display:"inline-block",verticalAlign:"middle",margin:0}} width="17" height="17" data-path="images/flexi-capture/fls/el_labeled_field.gif" /> で示されます。

必要に応じて、**ラベル付き field** 要素はグループとして表すことができます。

field の名前を検索する際、プログラムは、[プレ認識](/ja/flexi-capture/fls/batch/prerecognition) によって検出され、要素の検索領域内にある **Recognized Lines** オブジェクトと **認識済みの単語** オブジェクトを考慮します。field の名前が検出されると、プログラムは、その要素で指定された記述に内容が一致する field を検索します。

<div id="name-properties">
  ## 名前のプロパティ
</div>

field の名前は、[Static Text](/ja/flexi-capture/fls/template/static-text) 要素で表します。

名前のプロパティは、要素の **Properties** ダイアログの **Label** タブで指定します。

**Properties** ダイアログを開くには、**FlexiLayout** ウィンドウでその要素を右クリックし、ショートカット メニューから **Properties...** を選択します。

<Frame>
  <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Label_tab.gif?fit=max&auto=format&n=fmgRWFNHKYN2MLSg&q=85&s=261012da57cc93e487caadad385df43b" alt="ABBYY FlexiLayout Studio のラベル付き field 要素の Properties ダイアログにある Label タブのスクリーンショット。" width="431" height="455" data-path="images/flexi-capture/fls/Label_tab.gif" />
</Frame>

### <a id="fieldposition" />名前に対する field の位置

field の名前に対する位置は、**Field Position** タブで指定します。

<Frame>
  <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Field_position_tab.gif?fit=max&auto=format&n=fmgRWFNHKYN2MLSg&q=85&s=0355873e9d685f87bfbe600d5d6d4bce" alt="ABBYY FlexiLayout Studio のラベル付き field 要素の Properties ダイアログにある Field Position タブのスクリーンショット。field の位置、配置、最小間隔、および検索領域のオプションが表示されています。" width="431" height="455" data-path="images/flexi-capture/fls/Field_position_tab.gif" />
</Frame>

| Property               | Description                           |
| ---------------------- | ------------------------------------- |
| **Field Position**     | 名前に対する field の位置 (右、左、上、下) を指定します。    |
| **Minimum space**      | 名前と field の間の最小間隔を指定します (ユーザー定義の単位) 。 |
| **Search area width**  | 検索領域の幅を指定します (ユーザー定義の単位) 。            |
| **Search area height** | 検索領域の高さを指定します (ユーザー定義の単位) 。           |

**Field alignment** は、名前を囲む Rectangle に対する field の検索領域の配置を指定します。設定できる値は、**Field Position** field の値によって異なります。

* field が名前の右または左に配置されている場合、検索領域は上側または下側の境界に揃えるか、中央に配置できます。
* field が名前の上または下に配置されている場合、検索領域は左側または右側の境界に揃えるか、中央に配置できます。

**Detect indent size** は、field とその名前の間の距離を検出するために [White Gap](/ja/flexi-capture/fls/template/white-gap) 要素を使用するかどうかを指定するフラグです。

このオプションをオフにすると、距離の検索領域は **Minimum space** field で指定した値から始まります。オンにすると、この距離から始まる補助の [White Gap](/ja/flexi-capture/fls/template/white-gap) 要素が生成され、検索領域はこの要素の後から始まります。

### <a id="field" />field の検索条件

field の検索条件は、**Field** タブで指定します。

<Frame>
  <img src="https://mintcdn.com/abbyy/fmgRWFNHKYN2MLSg/images/flexi-capture/fls/Field_tab.gif?fit=max&auto=format&n=fmgRWFNHKYN2MLSg&q=85&s=6a39f4dae9ab5aa3f0a47d04e024131f" alt="ABBYY FlexiLayout Studio のラベル付き field 要素の Properties ダイアログにある Field タブのスクリーンショット。Field Content の型と、その検索条件が表示されています。" width="431" height="454" data-path="images/flexi-capture/fls/Field_tab.gif" />
</Frame>

**Field Content** では、field の内容の型を指定します。

field の型に応じて、**Field** タブには追加の検索条件を設定できます。

| Field Content の型     | 追加の制約                                                                                                                                                                                                                   |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Fixed variants**   | [Static Text](/ja/flexi-capture/fls/template/static-text) 型と同じで、プロパティも同一です。                                                                                                                                             |
| **Number**           | **Value interval** — 可能な値の範囲です。-2147483648 から 2147483647 までです。**Signs and Separators** — **Take sign into account** (数値に符号を含めることができます) および **Can be fractional** (数値に小数部を含めることができます) です。                                |
| **Currency**         | **Currency names** — [Currency](/ja/flexi-capture/fls/template/currency) 型の同名のプロパティと同じです。                                                                                                                               |
| **Date**             | [Date](/ja/flexi-capture/fls/template/date) 型と同じで、プロパティも同一です。                                                                                                                                                           |
| **Phone**            | **Min number of digits** と **Max number of digits** — [Phone](/ja/flexi-capture/fls/template/phone) 型の同名のプロパティと同じです。                                                                                                    |
| **Character String** | **Alphabet** — 使用可能な文字のセットです ([Character String](/ja/flexi-capture/fls/template/character-chain) 型と同じです) 。**Regular expression** — 検索パターンです (Character String 型と同じです) 。**Min length** と **Max length** — 文字列の最小長と最大長です。 |

<div id="related-topics">
  ## 関連トピック
</div>

* [要素の作成、コピー、削除](/ja/flexi-capture/fls/template/elements-simple)
* [要素のプロパティの概要](/ja/flexi-capture/fls/template/elements-properties)
* [検索領域](/ja/flexi-capture/fls/template/search-constraints)
* [ラベル付き field](/ja/flexi-capture/fls/language/labeled-field-language)
