## Document.CreateComment method

在给定指定字符串的情况下创建 Comment 节点。

```csharp
public Comment CreateComment(string data)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| data | String | 评论数据。 |

### 返回值

的[`Comment`](../../comment/).

### 也可以看看

* class [Comment](../../comment/)
* class [Document](../)
* 命名空间 [Aspose.Html.Dom](../../document/)
* 部件 [Aspose.HTML](../../../)


