Tag Interface

Represents an HTML element.

C#
public interface Tag : Node, BaseTag<Tag>
Derived
Implements

Remarks

This object is immutable.

Methods

Add(Node[])

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

Add(IEnumerable<Node>)

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

Add(string)

Gets a new Tag object with the child Nodes that represent both the children of this object and the new text node containing the specified string.

Methods Detail

Add(Node[])

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

C#
Tag Add(params Node[] children)

Parameters

children
Node[]

The adding Nodes as children.

Returns

Tag

The new Tag object.

Remarks

The node that this method returns has the same attributes of this object.

Add(IEnumerable<Node>)

Gets a new Tag object with the child Nodes that represent both the children of this object and the specified nodes.

C#
Tag Add(IEnumerable<Node> children)

Parameters

children
IEnumerable<Node>

The adding Nodes as children.

Returns

Tag

The new Tag object.

Remarks

The node that this method returns has the same attributes of this object.

Add(string)

Gets a new Tag object with the child Nodes that represent both the children of this object and the new text node containing the specified string.

C#
Tag Add(string text)

Parameters

text
string

The text that the adding node contains.

Returns

Tag

The new Tag object.

Remarks

The node that this method returns has the same attributes of this object.