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

Infogar en specificerad sträng vid en angiven indexposition i den här instansen.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| startIndex | Int32 | Startindex. |
| value | String | Värdet. |

### Returvärde

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

### Undantag

| undantag | skick |
| --- | --- |
| ArgumentOutOfRangeException |  |

### Se även

* class [RichText](../)
* namnutrymme [Aspose.Note](../../richtext/)
* hopsättning [Aspose.Note](../../../)

---

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

Infogar en specificerad sträng med specificerad stil vid en angiven indexposition i denna instans.

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

| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| startIndex | Int32 | Startindex. |
| value | String | Värdet. |
| style | TextStyle | Stilen. |

### Returvärde

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

### Undantag

| undantag | skick |
| --- | --- |
| ArgumentOutOfRangeException |  |

### Se även

* class [TextStyle](../../textstyle/)
* class [RichText](../)
* namnutrymme [Aspose.Note](../../richtext/)
* hopsättning [Aspose.Note](../../../)


