> ## 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 Text Object

This method inserts a new text into the current text before the specified symbol.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Insert( _
  Text As Text, _
  Pos As Integer _
)
```

```cpp C++ theme={null}
HRESULT Insert(
  IText* Text,
  int    Pos
);
```

## Parameters

**Text**

\[in] This variable refers to the [**Text**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/text.md) object that is to be inserted.

**Pos**

\[in] An index of a character in the text before which the text is inserted.

## Return values

This method 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

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

[**IText::Delete**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/text-delete.md)
