HtmlNodeCollectionAdd(String, String) Method

Add a new HtmlNodeItem to the collection by its node type and text.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public HtmlNodeItem Add(
	string nodeType,
	string text
)

Parameters

nodeType  String
The node type to add.
text  String
The node text to add.

Return Value

HtmlNodeItem
Reference to a newly created and added HtmlNodeItem, if a valid nodeType was provided. Otherwise, reference to a newly created div element.

See Also