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

# ElementEx Property of the ConfusionMatrix Object

This property returns the element of the confusion matrix by the name of the class.

## Syntax

```vb Visual Basic .NET theme={null}
Property Element( _
  KnownClass As String, _
  FoundClass As String _
) As Integer
```

```cpp C++ theme={null}
HRESULT Element(
  BSTR  KnownClass,
  BSTR  FoundClass,
  int*  Result
);
```

## Parameters

**KnownClass**

\[in] The name of a class to which the element belongs.

**FoundClass**

\[in] The name of a class which was found by the classifier.

**Result**

\[out, retval] An integer variable that receives the value of the matrix cell. It contains a number of pages that belong to one class, but were classified as belonging to another.

## Return values

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

## See also

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