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

# FieldInstances オブジェクトの AddNew メソッド

このメソッドは、コレクション内の指定した位置に field のインスタンスを追加します。

## 構文

```vb Visual Basic .NET theme={null}
Function AddNew(Index As Integer) As Field
```

```cpp C++ theme={null}
HRESULT AddNew(
  int      Index,
  IField** Result
);
```

## パラメーター

**Index**

\[in] コレクション内の field インスタンスのインデックスを指定します。このパラメーターには -1 を指定できます。-1 を指定すると、field インスタンスはコレクションの末尾に追加されます。

**Result**

\[out, retval] 追加された field インスタンスのインターフェースポインターを受け取る [**IField**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/field.md)\*\*\*\*\* 変数へのポインター。

## 戻り値

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

## 関連項目

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

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