## Document.CreateComment method

Creates a Comment node given the specified string.

```csharp
public Comment CreateComment(string data)
```

| Parameter | Type | Description |
| --- | --- | --- |
| data | String | The comment data. |

### Return Value

The [`Comment`](../../comment/).

### See Also

* class [Comment](../../comment/)
* class [Document](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
