DocumentCreateComment Method

Creates a Comment node given the specified string.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.5
Syntax
public Comment CreateComment(
	string data
)

Parameters

data
Type: SystemString

The comment content.

Return Value

Type: Comment
The Comment.
Examples
var comment = document.CreateComment(data);
See Also