Description
The HtmlTag object represents any HTML tag. A tag has a name and zero or more attributes.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public class HtmlTag : HtmlNode
Public Class HtmlTag _
	Inherits HtmlNode
public ref class HtmlTag : public HtmlNode

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
HtmlTag(String)
This constructs a new HTML tag with the specified tag name.
Attributes
This is the collection of attributes associated with this tag.
FirstChild
This will return the first child node. If there are no children, this will return null.
(Inherited from HtmlNode.)
GetCommonAncestor(HtmlNode)
This will return the ancstor that is common to this node and the one specified.
(Inherited from HtmlNode.)
HTML
This will return the HTML for this tag and all subnodes.
(Overrides HtmlNode..::..HTML.)
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.
(Inherited from HtmlNode.)
IsAncestorOf(HtmlNode)
This will return true if the node passed is one of the children or grandchildren of this node.
(Inherited from HtmlNode.)
IsChild
This will return true if this is a child node (has a parent).
(Inherited from HtmlNode.)
IsComment
This will return true if the node is a comment.
(Inherited from HtmlNode.)
IsDescendentOf(HtmlNode)
This will return true if the node passed is a descendent of this node.
(Inherited from HtmlNode.)
IsParent
This will return true if this is a parent node (has childs)
(Inherited from HtmlNode.)
IsRoot
This will return true if this is a root node (has no parent).
(Inherited from HtmlNode.)
IsTag
This will return true if the node is a tag.
(Inherited from HtmlNode.)
IsText
This will return true if the node is a text(not tag).
(Inherited from HtmlNode.)
LastChild
This will return the last child node. If there are no children, this will return null.
(Inherited from HtmlNode.)
Name
This is the tag name of the tag. e.g. BR, BODY, TABLE etc.
Next
This will return the next sibling node. If this is the last one, it will return null.
(Inherited from HtmlNode.)
Nodes
This is the collection of all child nodes of this one. If this node is actually a text node, this will throw an InvalidOperationException exception.
Parent
This will return the parent of this node, or null if there is none.
(Inherited from HtmlNode.)
Prev
This will return the previous sibling node. If this is the first one, it will return null.
(Inherited from HtmlNode.)
Remove()()()()
This will remove this node and all child nodes from the tree. If this is a root node, this operation will do nothing.
(Inherited from HtmlNode.)
Text
A concatination of all the text associated with this tag including inner items.
ToString()()()()
This will return the HTML representation of this tag.
(Overrides HtmlNode..::..ToString()()()().)
XHTML
This will return the XHTML for this tag and all subnodes.
(Overrides HtmlNode..::..XHTML.)

Inheritance Hierarchy

System..::..Object
  Docs.Html..::..HtmlNode
    Docs.Html..::..HtmlTag

See Also