## Insert(int, string) {#insert}

このインスタンスの指定されたインデックス位置に指定された文字列を挿入します。

```csharp
public RichText Insert(int startIndex, string value)
```

| パラメータ | タイプ | 説明 |
| --- | --- | --- |
| startIndex | Int32 | 開始インデックス. |
| value | String | 値. |

### 戻り値

[`RichText`](../).

### 例外

| 例外 | 調子 |
| --- | --- |
| ArgumentOutOfRangeException |  |

### 関連項目

* class [RichText](../)
* 名前空間 [Aspose.Note](../../richtext/)
* 組み立て [Aspose.Note](../../../)

---

## Insert(int, string, TextStyle) {#insert_1}

このインスタンスの指定されたインデックス位置に、指定されたスタイルで指定された文字列を挿入します。

```csharp
public RichText Insert(int startIndex, string value, TextStyle style)
```

| パラメータ | タイプ | 説明 |
| --- | --- | --- |
| startIndex | Int32 | 開始インデックス. |
| value | String | 値. |
| style | TextStyle | スタイル. |

### 戻り値

[`RichText`](../).

### 例外

| 例外 | 調子 |
| --- | --- |
| ArgumentOutOfRangeException |  |

### 関連項目

* class [TextStyle](../../textstyle/)
* class [RichText](../)
* 名前空間 [Aspose.Note](../../richtext/)
* 組み立て [Aspose.Note](../../../)


