CreateTextNode Method (String)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates an HTML text node with the specified text.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public HtmlTextNode CreateTextNode(
	string text
)
Visual Basic
Public Function CreateTextNode ( _
	text As String _
) As HtmlTextNode
Visual C++
public:
HtmlTextNode^ CreateTextNode(
	String^ text
)

Parameters

text
Type: System..::..String
The text of the node. May not be null.

Return Value

The new HTML text node.

See Also