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

# InsertText Method of the Paragraph Object

This method inserts the specified text into the text of the paragraph.

## Syntax

### C++

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

### C\#

```csharp theme={null}
void InsertText(
  int  Pos,
  IText Text
);
```

### Visual Basic .NET

```vb theme={null}
Sub InsertText( _
  Pos As Integer, _
  Text As IText _
)
```

## Parameters

Pos

\[in] Position where the text is inserted. Must be not less than 0 and not greater than the length of paragraph.

Text

\[in] This variable must refer to a valid [Text](/fine-reader/engine/api-reference/text-related-objects/text) object that contains the newly inserted text.

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

[Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph)
