## Trim(params char[]) {#trim_2}

Removes all leading and trailing occurrences of a set of characters specified in an array.

```csharp
public RichText Trim(params char[] trimChars)
```

| Parameter | Type | Description |
| --- | --- | --- |
| trimChars | Char[] | The trim chars. |

### Return Value

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

### See Also

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

---

## Trim(char) {#trim_1}

Removes all leading and trailing instances of a characte.

```csharp
public RichText Trim(char trimChar)
```

| Parameter | Type | Description |
| --- | --- | --- |
| trimChar | Char | The trim char. |

### Return Value

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

### See Also

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

---

## Trim() {#trim}

Removes all leading and trailing white-space characters.

```csharp
public RichText Trim()
```

### Return Value

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

### See Also

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


