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

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

このメソッドは、コレクションの末尾にページ定義を追加します。

## 構文

```vb Visual Basic .NET theme={null}
Function AddNew(ImagePath As String) As PageDefinition
```

```cpp C++ theme={null}
HRESULT AddNew(
  BSTR              ImagePath,
  IPageDefinition** Result
);
```

## パラメーター

**ImagePath**

\[in] ページ定義のテンプレート画像を含む画像ファイルへのパスを格納する変数です。

**Result**

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

## 戻り値

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

## 関連項目

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