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

Insère une chaîne spécifiée à une position d'index spécifiée dans cette instance.

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| startIndex | Int32 | L'index de départ. |
| value | String | La valeur. |

### Return_Value

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

### Exceptions

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

### Voir également

* class [RichText](../)
* espace de noms [Aspose.Note](../../richtext/)
* Assemblée [Aspose.Note](../../../)

---

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

Insère une chaîne spécifiée avec un style spécifié à une position d'index spécifiée dans cette instance.

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

| Paramètre | Taper | La description |
| --- | --- | --- |
| startIndex | Int32 | L'index de départ. |
| value | String | La valeur. |
| style | TextStyle | Le style. |

### Return_Value

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

### Exceptions

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

### Voir également

* class [TextStyle](../../textstyle/)
* class [RichText](../)
* espace de noms [Aspose.Note](../../richtext/)
* Assemblée [Aspose.Note](../../../)


