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

# GetRecognizedCharacter Method of the RecognizedWordInfo Object

This method provides access to a recognition variant and parameters of a character at a given position in the word. Using this method you can view the main recognition variant of the character (which is used in the resulting text) and all other variants.

> [!NOTE]
>
> The API working with recognition variants is not available for recognizing handprinted texts.

## Syntax

```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
);
```

## Parameters

**index**

\[in] Specifies the index of the character in the word. It must be in range from 0 to the length of the word (length of the [**IRecognizedWordInfo::Text**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognizedwordinfo.md#text) string) minus 1.

**variantIndex**

\[in] Specifies the index of the recognition variant of the character in the internal collection of character recognition variants. The number of variants in the collection can be obtained using the [**IRecognizedCharacterInfo::RecognitionVariantsCount**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognizedcharacterinfo.md#recognitionvariantscount) property of any variant of the character recognition. Recognition variants are ranked from the best to the worst. The value of the parameter can be -1, which means that the main recognition variant should be returned.

**result**

\[in] Refers to the [**RecognizedCharacterInfo**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/recognizedcharacterinfo.md) object. This object properties are initialized with values corresponding to parameters of the character variant. A valid object should be passed as this parameter.

## Return values

This function has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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