HtmlTextNode Members

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlTextNode type exposes the following members.

Methods

  NameDescription
Public methodAncestors()()()()
Returns a collection of all ancestor nodes of this element.
(Inherited from HtmlNode.)
Public methodAncestors(String)
Get Ancestors with matching name
(Inherited from HtmlNode.)
Public methodAncestorsAndSelf()()()()
Returns a collection of all ancestor nodes of this element.
(Inherited from HtmlNode.)
Public methodAncestorsAndSelf(String)
Gets all anscestor nodes and the current node
(Inherited from HtmlNode.)
Public methodAppendChild
Adds the specified node to the end of the list of children of this node.
(Inherited from HtmlNode.)
Public methodAppendChildren
Adds the specified node to the end of the list of children of this node.
(Inherited from HtmlNode.)
Public methodChildAttributes
Gets all Attributes with name
(Inherited from HtmlNode.)
Public methodClone
Creates a duplicate of the node
(Inherited from HtmlNode.)
Public methodCloneNode(Boolean)
Creates a duplicate of the node.
(Inherited from HtmlNode.)
Public methodCloneNode(String)
Creates a duplicate of the node and changes its name at the same time.
(Inherited from HtmlNode.)
Public methodCloneNode(String, Boolean)
Creates a duplicate of the node and changes its name at the same time.
(Inherited from HtmlNode.)
Public methodCopyFrom(HtmlNode)
Creates a duplicate of the node and the subtree under it.
(Inherited from HtmlNode.)
Public methodCopyFrom(HtmlNode, Boolean)
Creates a duplicate of the node.
(Inherited from HtmlNode.)
Public methodCreateNavigator
Creates a new XPathNavigator object for navigating this HTML node.
(Inherited from HtmlNode.)
Public methodCreateRootNavigator
Creates an XPathNavigator using the root of this document.
(Inherited from HtmlNode.)
Public methodDescendantNodes
Gets all Descendant nodes for this node and each of child nodes
(Inherited from HtmlNode.)
Public methodDescendantNodesAndSelf
Returns a collection of all descendant nodes of this element, in document order
(Inherited from HtmlNode.)
Public methodDescendants()()()()
Gets all Descendant nodes in enumerated list
(Inherited from HtmlNode.)
Public methodDescendants(String)
Get all descendant nodes with matching name
(Inherited from HtmlNode.)
Public methodDescendantsAndSelf()()()()
Returns a collection of all descendant nodes of this element, in document order
(Inherited from HtmlNode.)
Public methodDescendantsAndSelf(String)
Gets all descendant nodes including this node
(Inherited from HtmlNode.)
Public methodElement
Gets first generation child node matching name
(Inherited from HtmlNode.)
Public methodElements
Gets matching first generation child nodes matching name
(Inherited from HtmlNode.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAttributeValue(String, Boolean)
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
(Inherited from HtmlNode.)
Public methodGetAttributeValue(String, Int32)
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
(Inherited from HtmlNode.)
Public methodGetAttributeValue(String, String)
Helper method to get the value of an attribute of this node. If the attribute is not found, the default value will be returned.
(Inherited from HtmlNode.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsertAfter
Inserts the specified node immediately after the specified reference node.
(Inherited from HtmlNode.)
Public methodInsertBefore
Inserts the specified node immediately before the specified reference node.
(Inherited from HtmlNode.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrependChild
Adds the specified node to the beginning of the list of children of this node.
(Inherited from HtmlNode.)
Public methodPrependChildren
Adds the specified node list to the beginning of the list of children of this node.
(Inherited from HtmlNode.)
Public methodRemove
Removes node from parent collection
(Inherited from HtmlNode.)
Public methodRemoveAll
Removes all the children and/or attributes of the current node.
(Inherited from HtmlNode.)
Public methodRemoveAllChildren
Removes all the children of the current node.
(Inherited from HtmlNode.)
Public methodRemoveChild(HtmlNode)
Removes the specified child node.
(Inherited from HtmlNode.)
Public methodRemoveChild(HtmlNode, Boolean)
Removes the specified child node.
(Inherited from HtmlNode.)
Public methodReplaceChild
Replaces the child node oldChild with newChild node.
(Inherited from HtmlNode.)
Public methodSelectNodes
Selects a list of nodes matching the XPath expression.
(Inherited from HtmlNode.)
Public methodSelectSingleNode
Selects the first XmlNode that matches the XPath expression.
(Inherited from HtmlNode.)
Public methodSetAttributeValue
Helper method to set the value of an attribute of this node. If the attribute is not found, it will be created automatically.
(Inherited from HtmlNode.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodWriteContentTo()()()()
Saves all the children of the node to a string.
(Inherited from HtmlNode.)
Public methodWriteContentTo(TextWriter)
Saves all the children of the node to the specified TextWriter.
(Inherited from HtmlNode.)
Public methodWriteTo()()()()
Saves the current node to a string.
(Inherited from HtmlNode.)
Public methodWriteTo(TextWriter)
Saves the current node to the specified TextWriter.
(Inherited from HtmlNode.)
Public methodWriteTo(XmlWriter)
Saves the current node to the specified XmlWriter.
(Inherited from HtmlNode.)

Properties

  NameDescription
Public propertyAttributes
Gets the collection of HTML attributes for this node. May not be null.
(Inherited from HtmlNode.)
Public propertyChildNodes
Gets all the children of the node.
(Inherited from HtmlNode.)
Public propertyClosed
Gets a value indicating if this node has been closed or not.
(Inherited from HtmlNode.)
Public propertyClosingAttributes
Gets the collection of HTML attributes for the closing tag. May not be null.
(Inherited from HtmlNode.)
Public propertyFirstChild
Gets the first child of the node.
(Inherited from HtmlNode.)
Public propertyHasAttributes
Gets a value indicating whether the current node has any attributes.
(Inherited from HtmlNode.)
Public propertyHasChildNodes
Gets a value indicating whether this node has any child nodes.
(Inherited from HtmlNode.)
Public propertyHasClosingAttributes
Gets a value indicating whether the current node has any attributes on the closing tag.
(Inherited from HtmlNode.)
Public propertyId
Gets or sets the value of the 'id' HTML attribute. The document must have been parsed using the OptionUseIdAttribute set to true.
(Inherited from HtmlNode.)
Public propertyInnerHtml
Gets or Sets the HTML between the start and end tags of the object. In the case of a text node, it is equals to OuterHtml.
(Overrides HtmlNode..::..InnerHtml.)
Public propertyInnerText
Gets or Sets the text between the start and end tags of the object.
(Inherited from HtmlNode.)
Public propertyLastChild
Gets the last child of the node.
(Inherited from HtmlNode.)
Public propertyLine
Gets the line number of this node in the document.
(Inherited from HtmlNode.)
Public propertyLinePosition
Gets the column number of this node in the document.
(Inherited from HtmlNode.)
Public propertyName
Gets or sets this node's name.
(Inherited from HtmlNode.)
Public propertyNextSibling
Gets the HTML node immediately following this element.
(Inherited from HtmlNode.)
Public propertyNodeType
Gets the type of this node.
(Inherited from HtmlNode.)
Public propertyOriginalName
The original unaltered name of the tag
(Inherited from HtmlNode.)
Public propertyOuterHtml
Gets or Sets the object and its content in HTML.
(Overrides HtmlNode..::..OuterHtml.)
Public propertyOwnerDocument
Gets the HtmlDocument to which this node belongs.
(Inherited from HtmlNode.)
Public propertyParentNode
Gets the parent of this node (for nodes that can have parents).
(Inherited from HtmlNode.)
Public propertyPreviousSibling
Gets the node immediately preceding this node.
(Inherited from HtmlNode.)
Public propertyStreamPosition
Gets the stream position of this node in the document, relative to the start of the document.
(Inherited from HtmlNode.)
Public propertyText
Gets or Sets the text of the node.
Public propertyXPath
Gets a valid XPath string that points to this node
(Inherited from HtmlNode.)

See Also