Description
The HtmlNode is the base for all objects that may appear in HTML. Currently, this implemention only supports HtmlText and HtmlTag node types.

Namespace: Docs.Html
Assembly: Docs.Html (in Docs.Html.dll) Version: 2.1.0.0 (2.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public abstract class HtmlNode
Public MustInherit Class HtmlNode
public ref class HtmlNode abstract

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
FirstChild
This will return the first child node. If there are no children, this will return null.
GetCommonAncestor(HtmlNode)
This will return the ancstor that is common to this node and the one specified.
HTML
This will return the full HTML to represent this node (and all child nodes).
Index
This will return the index position within the parent's nodes that this one resides. If this is not in a collection, this will return -1.
IsAncestorOf(HtmlNode)
This will return true if the node passed is one of the children or grandchildren of this node.
IsChild
This will return true if this is a child node (has a parent).
IsComment
This will return true if the node is a comment.
IsDescendentOf(HtmlNode)
This will return true if the node passed is a descendent of this node.
IsParent
This will return true if this is a parent node (has childs)
IsRoot
This will return true if this is a root node (has no parent).
IsTag
This will return true if the node is a tag.
IsText
This will return true if the node is a text(not tag).
LastChild
This will return the last child node. If there are no children, this will return null.
Next
This will return the next sibling node. If this is the last one, it will return null.
Parent
This will return the parent of this node, or null if there is none.
Prev
This will return the previous sibling node. If this is the first one, it will return null.
Remove()()()()
This will remove this node and all child nodes from the tree. If this is a root node, this operation will do nothing.
ToString()()()()
This will render the node as it would appear in HTML.
(Overrides Object..::..ToString()()()().)
XHTML
This will return the full XHTML to represent this node (and all child nodes)

Inheritance Hierarchy

See Also