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

# Text オブジェクトの Insert メソッド

このメソッドは、現在のテキストの指定した文字の前に新しいテキストを挿入します。

## 構文

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

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

## パラメーター

**Text**

\[in] 挿入する [**Text**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/text.md) オブジェクトを参照する変数です。

**Pos**

\[in] テキストの挿入位置を示す文字のインデックスです。テキストはこの文字の前に挿入されます。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

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

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