## 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](../../../)


