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

# カテゴリ オブジェクトの AddNew メソッド

> ABBYY FineReader Engine API のカテゴリ オブジェクトの AddNew メソッド。指定したラベルを持つ新しいカテゴリを作成し、コレクションに追加します。

このメソッドは、指定したラベルを持つ新しいカテゴリを作成し、コレクションに追加します。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT AddNew(
  BSTR        Label,
  ICategory** Result
);
```

### C\#

```csharp theme={null}
ICategory AddNew( string Label );
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
Function AddNew(Label As String) As ICategory
```

<div id="parameters">
  ## パラメーター
</div>

Label

\[in] 新しく追加するカテゴリのラベルです。categories コレクション内で一意である必要があります。

Result

\[out, retval] 新しく追加された [Category](/ja/fine-reader/engine/api-reference/classification-related-objects/category) オブジェクトのインターフェイスへのポインターを受け取る、ICategory\* 型の変数です。

<div id="return-values">
  ## 戻り値
</div>

このメソッドには固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

[カテゴリ](/ja/fine-reader/engine/api-reference/classification-related-objects/categories)
