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

Inserts a specified string at a specified index position in this instance.

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

| Parameter | Type | Description |
| --- | --- | --- |
| startIndex | Int32 | The start index. |
| value | String | The value. |

### Return Value

The [`RichText`](../).

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException |  |

### See Also

* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)

---

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

Inserts a specified string with specified style at a specified index position in this instance.

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

| Parameter | Type | Description |
| --- | --- | --- |
| startIndex | Int32 | The start index. |
| value | String | The value. |
| style | TextStyle | The style. |

### Return Value

The [`RichText`](../).

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentOutOfRangeException |  |

### See Also

* class [TextStyle](../../textstyle/)
* class [RichText](../)
* namespace [Aspose.Note](../../richtext/)
* assembly [Aspose.Note](../../../)


