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

# RecognizedWordInfo オブジェクトの GetRecognizedCharacter メソッド

このメソッドを使用すると、単語内の指定した位置にある文字の認識候補とパラメーターにアクセスできます。文字の主要な認識候補 (認識結果のテキストで使用されるもの) と、その他すべての候補を確認できます。

> [!NOTE]
>
> 認識候補を扱う API は、手書き風文字で書かれたテキストの認識には使用できません。

## 構文

```vb Visual Basic .NET theme={null}
Sub GetRecognizedCharacter( _
  index As Integer, _
  variantIndex As Integer, _
  result As RecognizedCharacterInfo _
)
```

```cpp C++ theme={null}
HRESULT GetRecognizedCharacter(
   int                       index,
   int                       variantIndex,
   IRecognizedCharacterInfo* result
);
```

## パラメーター

**index**

\[in] 単語内の文字のインデックスを指定します。0 から「単語の長さ ([**IRecognizedWordInfo::Text**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognizedwordinfo.md#text) 文字列の長さ) − 1」までの範囲で指定する必要があります。

**variantIndex**

\[in] 文字認識候補の内部コレクションにおける、文字の認識候補のインデックスを指定します。コレクション内の候補の数は、その文字の任意の認識候補の [**IRecognizedCharacterInfo::RecognitionVariantsCount**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognizedcharacterinfo.md#recognitionvariantscount) プロパティで取得できます。認識候補は、精度の高い順に並んでいます。このパラメーターには -1 を指定することもでき、その場合は主要な認識候補が返されます。

**result**

\[in] [**RecognizedCharacterInfo**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/recognizedcharacterinfo.md) オブジェクトを参照します。このオブジェクトのプロパティは、文字候補のパラメーターに対応する値で初期化されます。このパラメーターには有効なオブジェクトを渡す必要があります。

## 戻り値

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

## 関連項目

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