HtmlNodeItem Class

A Single HTML Node.

Definition

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

Constructors

HtmlNodeItem Create a new instance of the HtmlNodeItem item.
HtmlNodeItem(String) Create a new instance of the HtmlNodeItem item.
HtmlNodeItem(String, String) Create a new instance of the HtmlNodeItem item.

Properties

AbsoluteIndex Get the absolute index of this item in the hierarchy.
Attributes Get a reference to the Collection of Attributes on this Node.
ClosingTag Get the Closing Tag of this Element.
Comments Get a reference to the Comments collection for this Node.
Html Get the HTML Content of this Node Item.
Id Get/Set the ID of this Node.
Index Get/Set the Index of this Item within the local collection.
InnerHtml Get/Set the HTML Content Inside this entity.
InnerText Get/Set the Inner Text on this Item.
Item Get an Item from the Attributes collection by its Name.
Level Get the level of this item within the hierarchy.
Name Get/Set the Name of this Node.
Nodes Get a reference to the Nodes collection for this Item.
NodeType Get/Set the Node Type of this Node.
OpeningTag Get the Opening Tag of this Element Node.
Original Get/Set the Original Value of this Node.
Parent Get/Set the Node Collection to which this Node Belongs.
ParentNode Get the Parent Node of this Item.
SelfClosing Get/Set a value indicating whether this node is self-closing.
Text Get/Set the Non-Elemental Text of this Node.
TrailingText Get/Set the text trailing the end of this node.

Methods

Clone Return a deep copy of the provided HTML node item.
ContentEmpty Return a value indicating whether there is any printable content within the Node or its children.
Copy Create an exact copy of the specified Node and its hierarchy.
CopyContent Copy the content from the source node to the target node.
CreateUniqueId Create a unique id using the supplied base ID and list of reserved IDs.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
FindAttribute(HtmlNodeItem, String) Return Nodes by Name, ID, or Value content.
FindAttribute(HtmlNodeItem, String, String) Return Nodes by specified Attributes.
FindAttribute(HtmlNodeItem, String, String, ObjectCollection) Return Nodes by specified Attributes.
FindNodeText(HtmlNodeItem, String) Return a node by text content.
FindNodeText(HtmlNodeItem, String, ObjectCollection) Return a node by text content.
GetDocument Return a reference to the HTML document to which this item is associated.
GetHashCode
(Inherited from Object)
GetId Safely return the ID attribute of the provided node, if it exists.
GetIds Retrieve a list of the ids of the specified node and all of its descendants.
GetOutermostNodeOfType Return the specified node type encapsulating the provided node at the outermost level.
GetOuterNodeOfType(HtmlNodeItem, String) Return the specified node type encapsulating the provided node.
GetOuterNodeOfType(HtmlNodeItem, String) Return the specified node type encapsulating the provided node.
GetRoot Return the root-most node of the specified item.
GetStyle Return the value of the specified style in the provided node.
GetType
(Inherited from Object)
HasAncestorNodeType Return a value indicating whether this node's parent or ancestors have the specified tag name.
HasSiblingsAfter Return a value indicating whether the specified Node has siblings following.
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.
(Overrides ChangeObjectItemOnPropertyChanged(Object, PropertyChangeEventArgs))
OnPropertyChanged(String, Object, Object) Raises the PropertyChanged event when the value of a property value has changed.
(Inherited from ChangeObjectItem)
PreviousNodeType Return the node type of the previous sibling node in the current level.
RemoveAttribute Remove all attributes of a specified name within the Node and children.
ResetParent Reset the parent property on the node and its descendants.
SetStyle Set the value of the specified style in the provided node.
ToString Return the string representation of this item.
(Overrides ObjectToString)

Events

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

See Also