HtmlDocument Methods

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlDocument type exposes the following members.

Methods

  NameDescription
Public methodCreateAttribute(String)
Creates an HTML attribute with the specified name.
Public methodCreateAttribute(String, String)
Creates an HTML attribute with the specified name.
Public methodCreateComment()()()()
Creates an HTML comment node.
Public methodCreateComment(String)
Creates an HTML comment node with the specified comment text.
Public methodCreateElement
Creates an HTML element node with the specified name.
Public methodCreateNavigator
Creates a new XPathNavigator object for navigating this HTML document.
Public methodCreateTextNode()()()()
Creates an HTML text node.
Public methodCreateTextNode(String)
Creates an HTML text node with the specified text.
Public methodDetectEncoding(Stream)
Detects the encoding of an HTML stream.
Public methodDetectEncoding(TextReader)
Detects the encoding of an HTML text provided on a TextReader.
Public methodDetectEncoding(String)
Detects the encoding of an HTML file.
Public methodDetectEncodingAndLoad(String)
Detects the encoding of an HTML document from a file first, and then loads the file.
Public methodDetectEncodingAndLoad(String, Boolean)
Detects the encoding of an HTML document from a file first, and then loads the file.
Public methodDetectEncodingHtml
Detects the encoding of an HTML text.
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 methodGetElementbyId
Gets the HTML node with the specified 'id' attribute value.
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 methodStatic memberGetXmlName
Gets a valid XML name.
Public methodStatic memberHtmlEncode
Applies HTML encoding to a specified string.
Public methodStatic memberIsWhiteSpace
Determines if the specified character is considered as a whitespace character.
Public methodLoad(Stream)
Loads an HTML document from a stream.
Public methodLoad(TextReader)
Loads the HTML document from the specified TextReader.
Public methodLoad(String)
Loads an HTML document from a file.
Public methodLoad(Stream, Boolean)
Loads an HTML document from a stream.
Public methodLoad(Stream, Encoding)
Loads an HTML document from a stream.
Public methodLoad(String, Boolean)
Loads an HTML document from a file.
Public methodLoad(String, Encoding)
Loads an HTML document from a file.
Public methodLoad(Stream, Encoding, Boolean)
Loads an HTML document from a stream.
Public methodLoad(String, Encoding, Boolean)
Loads an HTML document from a file.
Public methodLoad(Stream, Encoding, Boolean, Int32)
Loads an HTML document from a stream.
Public methodLoad(String, Encoding, Boolean, Int32)
Loads an HTML document from a file.
Public methodLoadHtml
Loads the HTML document from the specified string.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave(Stream)
Saves the HTML document to the specified stream.
Public methodSave(StreamWriter)
Saves the HTML document to the specified StreamWriter.
Public methodSave(TextWriter)
Saves the HTML document to the specified TextWriter.
Public methodSave(String)
Saves the mixed document to the specified file.
Public methodSave(XmlWriter)
Saves the HTML document to the specified XmlWriter.
Public methodSave(Stream, Encoding)
Saves the HTML document to the specified stream.
Public methodSave(String, Encoding)
Saves the mixed document to the specified file.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also