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

Inserisce una stringa specificata in una posizione di indice specificata in questa istanza.

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

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| startIndex | Int32 | L'indice iniziale. |
| value | String | Il valore. |

### Valore di ritorno

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

### Eccezioni

| eccezione | condizione |
| --- | --- |
| ArgumentOutOfRangeException |  |

### Guarda anche

* class [RichText](../)
* spazio dei nomi [Aspose.Note](../../richtext/)
* assemblea [Aspose.Note](../../../)

---

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

Inserisce una stringa specificata con uno stile specificato in una posizione di indice specificata in questa istanza.

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

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| startIndex | Int32 | L'indice iniziale. |
| value | String | Il valore. |
| style | TextStyle | Lo stile. |

### Valore di ritorno

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

### Eccezioni

| eccezione | condizione |
| --- | --- |
| ArgumentOutOfRangeException |  |

### Guarda anche

* class [TextStyle](../../textstyle/)
* class [RichText](../)
* spazio dei nomi [Aspose.Note](../../richtext/)
* assemblea [Aspose.Note](../../../)


