HtmlDocument Class

Structured HTML Document.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class HtmlDocument : HtmlNodeItem
Inheritance
Object    ChangeObjectItem    HtmlNodeItem    HtmlDocument

Constructors

HtmlDocument Create a new Instance of the HtmlDocument Item.
HtmlDocument(String, Boolean, Boolean) Create a new Instance of the HtmlDocument Item.

Properties

AbsoluteIndex Get the absolute index of this item in the hierarchy.
(Inherited from HtmlNodeItem)
Attributes Get a reference to the Collection of Attributes on this Node.
(Inherited from HtmlNodeItem)
ClosingTag Get the Closing Tag of this Element.
(Inherited from HtmlNodeItem)
Comments Get a reference to the Comments collection for this Node.
(Inherited from HtmlNodeItem)
Html Get/Set the HTML Content of this Instance.
Id Get/Set the ID of this Node.
(Inherited from HtmlNodeItem)
IncludeComments Get/Set a value indicating whether to include comments.
Index Get/Set the Index of this Item within the local collection.
(Inherited from HtmlNodeItem)
InnerHtml Get/Set the HTML Content Inside this entity.
(Inherited from HtmlNodeItem)
InnerText Get/Set the Inner Text on this Item.
(Inherited from HtmlNodeItem)
Item Get an Item from anywhere in the structure by its ID.
Level Get the level of this item within the hierarchy.
(Inherited from HtmlNodeItem)
LineFeed Get/Set a value indicating whether to add line feeds at the ends of nodes.
Name Get/Set the Name of this Node.
(Inherited from HtmlNodeItem)
Nodes Get a reference to the Nodes collection for this Item.
(Inherited from HtmlNodeItem)
NodeType Get/Set the Node Type of this Node.
(Inherited from HtmlNodeItem)
OpeningTag Get the Opening Tag of this Element Node.
(Inherited from HtmlNodeItem)
Original Get/Set the Original Value of this Node.
(Inherited from HtmlNodeItem)
Parent Get/Set the Node Collection to which this Node Belongs.
(Inherited from HtmlNodeItem)
ParentNode Get the Parent Node of this Item.
(Inherited from HtmlNodeItem)
PreserveSpace Get/Set a value indicating whether to preserve space everywhere in the document.
SelfClosing Get/Set a value indicating whether this node is self-closing.
(Inherited from HtmlNodeItem)
Singles Get a reference to a list of Single Elements not requiring a Closing Tag.
Obsolete.
Text Get/Set the Non-Elemental Text of this Node.
(Inherited from HtmlNodeItem)
TrailingText Get/Set the text trailing the end of this node.
(Inherited from HtmlNodeItem)
UniqueIds Get a reference to the collection of unique IDs in this document.

Methods

AssignAttributes Assign attributes found in the HTML Element to Name / Value pairs in the supplied Attribute Collection.
Clear Clear the contents of the HTML Document.
Dump(HtmlDocument) Dump the contents of the HTML Document.
Dump(HtmlNodeCollection, Int32) Dump the contents of an HTML Nodes Collection.
Equals
(Inherited from Object)
FillUniqueIds Fill the UniqueIds list with every ID in the document.
Finalize
(Inherited from Object)
GetElementType Return the Element Type of the caller-supplied element.
GetHashCode
(Inherited from Object)
GetNode Return the first node found of a given node type.
GetNodes Return the all nodes found of a given node type.
GetNodesWithAttribute Return an array of nodes having the specified Attribute.
GetType
(Inherited from Object)
Insert(HtmlDocument, HtmlNodeItem) Insert a new node prior to the specified Node in this collection.
Insert(HtmlDocument, String, String) Insert the provided HTML before the specified Node in the appropriate level.
InsertAfter Insert a new node after the specified Node in this collection.
MemberwiseClone
(Inherited from Object)
OnPropertyChanged(String) Raises the PropertyChanged event when the value of a property has changed.
(Inherited from ChangeObjectItem)
OnPropertyChanged(Object, PropertyChangeEventArgs) Run the event up the document.
(Inherited from HtmlNodeItem)
OnPropertyChanged(String, Object, Object) Raises the PropertyChanged event when the value of a property value has changed.
(Inherited from ChangeObjectItem)
Parse(String, Boolean, Boolean) Parses the supplied HTML String to construct a basic Document.
Parse(HtmlDocument, String, Boolean, Boolean) Parses the supplied HTML String to construct a basic Document.
Parse(HtmlNodeCollection, String, Boolean, Boolean) Parses the supplied HTML String to construct a basic Document.
Parse(HtmlNodeCollection, StringTokenCollection, Int32, Boolean, Boolean) Parse the HTML elements token list into individual nodes.
Remove Find and remove the node with the specified unique ID.
RemoveAll Recursively remove all items matching the specified pattern.
RemoveAttribute Remove all attributes of a specified name within the Document.
ToString Return the string representation of this Document Object Model.
(Overrides HtmlNodeItemToString)

Events

PropertyChanged Raised when the value of a property has changed.
(Inherited from ChangeObjectItem)

Operators

(HtmlDocument to String) Cast the Html Document to a String.

See Also