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

# Insert Method of the MrzField Object

This method inserts a text fragment.

## Syntax

### C++

```cpp theme={null}
HRESULT GetCharParams(
  int           Pos,
  BSTR          Text, 
  ICharParams*  CharParams
);
```

### C\#

```csharp theme={null}
void Insert(
  int         Pos,
  string      Text,
  ICharParams CharParams
);
```

### Visual Basic .NET

```vb theme={null}
Sub Insert( _
  Pos As Integer, _
  Text As String, _
  CharParams As ICharParams _
)
```

## Parameters

Pos

\[in] Position where the text fragment is inserted.

Text

\[in] Specifies the text to be inserted.

CharParams

\[in] This variable refers to the [CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams) object that contains attributes for all characters of the inserted text fragment. This parameter may be 0, in which case the default character parameters are used.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[MrzField](/fine-reader/engine/api-reference/document-related-objects/mrzfield)<br />[CharParams](/fine-reader/engine/api-reference/text-related-objects/charparams)
