C# Class Fizzler.Systems.HtmlAgilityPack.HtmlNodeExtensions

HtmlNode extension methods.
Show file Open project: atifaziz/Fizzler

Public Methods

Method Description
Children ( this node ) : IEnumerable

Returns a collection of child nodes of this node.

Descendants ( this node ) : IEnumerable

Returns a collection of all descendant nodes of this element.

DescendantsAndSelf ( this node ) : IEnumerable

Returns a collection of nodes that contains this element followed by all descendant nodes of this element.

Elements ( this node ) : IEnumerable

Returns a collection of child elements of this node.

Elements ( this nodes ) : IEnumerable

Returns a collection of elements from this collection.

ElementsAfterSelf ( this node ) : IEnumerable

Returns a collection of the sibling elements after this node.

ElementsBeforeSelf ( this node ) : IEnumerable

Returns a collection of the sibling elements before this node.

GetBeginTagString ( this node ) : string

Returns a begin tag, including attributes, string representation of this element.

IsElement ( this node ) : bool

Determines whether this node is an element or not.

NodesAfterSelf ( this node ) : IEnumerable

Returns a collection of the sibling nodes after this node.

NodesBeforeSelf ( this node ) : IEnumerable

Returns a collection of the sibling nodes before this node.

Private Methods

Method Description
DescendantsImpl ( HtmlNode node ) : IEnumerable
NodesAfterSelfImpl ( HtmlNode node ) : IEnumerable
NodesBeforeSelfImpl ( HtmlNode node ) : IEnumerable

Method Details

Children() public static method

Returns a collection of child nodes of this node.
public static Children ( this node ) : IEnumerable
node this
return IEnumerable

Descendants() public static method

Returns a collection of all descendant nodes of this element.
public static Descendants ( this node ) : IEnumerable
node this
return IEnumerable

DescendantsAndSelf() public static method

Returns a collection of nodes that contains this element followed by all descendant nodes of this element.
public static DescendantsAndSelf ( this node ) : IEnumerable
node this
return IEnumerable

Elements() public static method

Returns a collection of child elements of this node.
public static Elements ( this node ) : IEnumerable
node this
return IEnumerable

Elements() public static method

Returns a collection of elements from this collection.
public static Elements ( this nodes ) : IEnumerable
nodes this
return IEnumerable

ElementsAfterSelf() public static method

Returns a collection of the sibling elements after this node.
public static ElementsAfterSelf ( this node ) : IEnumerable
node this
return IEnumerable

ElementsBeforeSelf() public static method

Returns a collection of the sibling elements before this node.
public static ElementsBeforeSelf ( this node ) : IEnumerable
node this
return IEnumerable

GetBeginTagString() public static method

Returns a begin tag, including attributes, string representation of this element.
public static GetBeginTagString ( this node ) : string
node this
return string

IsElement() public static method

Determines whether this node is an element or not.
public static IsElement ( this node ) : bool
node this
return bool

NodesAfterSelf() public static method

Returns a collection of the sibling nodes after this node.
public static NodesAfterSelf ( this node ) : IEnumerable
node this
return IEnumerable

NodesBeforeSelf() public static method

Returns a collection of the sibling nodes before this node.
public static NodesBeforeSelf ( this node ) : IEnumerable
node this
return IEnumerable