## SyntaxNodeCollection&lt;T&gt; class

表示语法节点的集合。

```csharp
public class SyntaxNodeCollection<T> : NodeList<T>, IList<T>
    where T : MarkdownSyntaxNode
```

| 范围 | 描述 |
| --- | --- |
| T | 集合值的类型。 |

## 构造函数

| 姓名 | 描述 |
| --- | --- |
| [SyntaxNodeCollection](syntaxnodecollection/)() | 默认构造函数。 |

## 特性

| 姓名 | 描述 |
| --- | --- |
| 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; } | 获取或设置给定索引处的值。 |

## 方法

| 姓名 | 描述 |
| --- | --- |
| [Add](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/add/)(T) | 将给定项目添加到集合中。 |
| [Clear](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/clear/)() | 从集合中删除所有项目。 |
| [Contains](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/contains/)(T) | 确定给定项是否存在于集合中。 |
| [CopyTo](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/copyto/)(T[], int) | 将此集合中的项目复制到数组，从 arrayIndex 开始 |
| 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/)(T) | 获取给定项的索引。 |
| [Insert](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/insert/)(int, T) | 在指定索引处插入给定项。 |
| [Remove](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/remove/)(T) | 从集合中删除项目。 |
| [RemoveAt](../../aspose.html.toolkit.markdown.syntax/syntaxnodecollection-1/removeat/)(int) | 删除给定索引处的项目。 |
| [WriteTo](../../aspose.html.toolkit.markdown.syntax/nodelist-1/writeto/)(TextWriter) |  |

### 也可以看看

* class [NodeList&lt;T&gt;](../nodelist-1/)
* class [MarkdownSyntaxNode](../markdownsyntaxnode/)
* 命名空间 [Aspose.Html.Toolkit.Markdown.Syntax](../../aspose.html.toolkit.markdown.syntax/)
* 部件 [Aspose.HTML](../../)


