## TriviaCollection class

A collection of trivia.

```csharp
public class TriviaCollection : SyntaxNodeCollection<WhitespaceSyntaxNode>
```

## Constructors

| Name | Description |
| --- | --- |
| [TriviaCollection](triviacollection/)() | The default constructor. |

## Properties

| Name | Description |
| --- | --- |
| override [Count](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/count/) { get; } |  |
| [IsReadOnly](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/isreadonly/) { get; } |  |
| [Item](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/item/) { get; set; } |  |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/add/)(*[WhitespaceSyntaxNode](../whitespacesyntaxnode/)*) |  |
| [Clear](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/clear/)() |  |
| [Contains](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/contains/)(*[WhitespaceSyntaxNode](../whitespacesyntaxnode/)*) |  |
| [CopyTo](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/copyto/)(*WhitespaceSyntaxNode[], int*) |  |
| override [Get](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/get/)(*int*) |  |
| override [GetEnumerator](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/getenumerator/)() |  |
| [IndexOf](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/indexof/)(*[WhitespaceSyntaxNode](../whitespacesyntaxnode/)*) |  |
| [Insert](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/insert/)(*int, [WhitespaceSyntaxNode](../whitespacesyntaxnode/)*) |  |
| [Remove](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/remove/)(*[WhitespaceSyntaxNode](../whitespacesyntaxnode/)*) |  |
| [RemoveAt](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/removeat/)(*int*) |  |
| [WriteTo](../../aspose.html.toolkit.markdown.syntax/nodelist-1/writeto/)(*TextWriter*) |  |

### See Also

* class [SyntaxNodeCollection&lt;T&gt;](../syntaxnodecollection-1/)
* class [WhitespaceSyntaxNode](../whitespacesyntaxnode/)
* namespace [Aspose.Html.Toolkit.Markdown.Syntax](../../aspose.html.toolkit.markdown.syntax/)
* assembly [Aspose.HTML](../../)
