HtmlNodeCollection Class

Collection of HtmlNodeItem Items.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class HtmlNodeCollection : ChangeObjectCollection<HtmlNodeItem>
Inheritance
Object    ListHtmlNodeItem    ChangeObjectCollectionHtmlNodeItem    HtmlNodeCollection

Constructors

HtmlNodeCollectionInitializes a new instance of the HtmlNodeCollection class

Properties

Capacity
(Inherited from ListHtmlNodeItem)
Count
(Inherited from ListHtmlNodeItem)
Document Get/Set a reference to the HTML document controlling this collection.
Html Get/Set the HTML Content of this Nodes Collection.
ItemInt32
(Inherited from ListHtmlNodeItem)
ItemString Get an Item from anywhere in the structure by its ID.
ParentNode Get/Set the Parent Node hosting this Collection.

Methods

Add Create a new HtmlNodeItem, add it to the Collection, and return it to the caller.
Add(HtmlNodeItem) Add an existing HtmlNodeItem to the Collection.
Add(String) Add a new HtmlNodeItem to the collection by its content.
Add(String, Boolean) Add a new HtmlNodeItem to the Collection by its content.
Add(String, String) Add a new HtmlNodeItem to the collection by its node type and text.
AddRange Add a series of HTML nodes to this list.
AddText Add basic text as a node.
AppendMatches(ListHtmlNodeItem, ListHtmlAttributeItem, FuncHtmlAttributeItem, Boolean) Append items matching the specified pattern to the list of items.
AppendMatches(ListHtmlNodeItem, ListHtmlNodeItem, FuncHtmlNodeItem, Boolean) Append items matching the specified pattern to the list of items.
AsReadOnly
(Inherited from ListHtmlNodeItem)
BinarySearch(T)
(Inherited from ListHtmlNodeItem)
BinarySearch(T, IComparerT)
(Inherited from ListHtmlNodeItem)
BinarySearch(Int32, Int32, T, IComparerT)
(Inherited from ListHtmlNodeItem)
Clear Remove all of the elements from the property collection.
(Inherited from ChangeObjectCollectionT)
ClearAll Clear all Nodes in all Levels of this Collection.
Clone Return a deep copy of the provided HTML node collection.
Contains
(Inherited from ListHtmlNodeItem)
ContentEmpty Return a value indicating whether there is any printable content within the Node or its children.
ConvertAllTOutput
(Inherited from ListHtmlNodeItem)
CopyTo(T)
(Inherited from ListHtmlNodeItem)
CopyTo(T, Int32)
(Inherited from ListHtmlNodeItem)
CopyTo(Int32, T, Int32, Int32)
(Inherited from ListHtmlNodeItem)
Equals
(Inherited from Object)
Exists
(Inherited from ListHtmlNodeItem)
FillUniqueIds Fill the provided unique IDs list from the ids found in the caller's node collection and all of its descendants.
Finalize
(Inherited from Object)
Find
(Inherited from ListHtmlNodeItem)
FindAll
(Inherited from ListHtmlNodeItem)
FindIndex(PredicateT)
(Inherited from ListHtmlNodeItem)
FindIndex(Int32, PredicateT)
(Inherited from ListHtmlNodeItem)
FindIndex(Int32, Int32, PredicateT)
(Inherited from ListHtmlNodeItem)
FindLast
(Inherited from ListHtmlNodeItem)
FindLastIndex(PredicateT)
(Inherited from ListHtmlNodeItem)
FindLastIndex(Int32, PredicateT)
(Inherited from ListHtmlNodeItem)
FindLastIndex(Int32, Int32, PredicateT)
(Inherited from ListHtmlNodeItem)
FindMatch Return the first item matching the specified pattern.
FindMatches Return a list of items matching the specified pattern.
FindMatchingAttributes Return a list of attributes from the nodes in the caller's collection that match the specified value.
ForEach
(Inherited from ListHtmlNodeItem)
GetDocument Return a reference to the HTML document to which this collection is associated.
GetEnumerator
(Inherited from ListHtmlNodeItem)
GetHashCode
(Inherited from Object)
GetIncludeComments Return a value indicating whether comments are enabled for this document.
GetLastNodeOfType Get the last node in the hierarchy of the specified type.
GetLineFeed Return a value indicating whether HTML elements are terminated with line feeds.
GetNode Return the first node found of a given node type.
GetNodes(HtmlNodeCollection, String) Return the all nodes found of a given node type.
GetNodes(HtmlNodeCollection, String) Return the all nodes found of a given node type.
GetNodesWithAttribute(HtmlNodeCollection, String) Return an array of nodes having the specified Attribute.
GetNodesWithAttribute(HtmlNodeItem, String) Return an array of nodes having the specified Attribute.
GetPreserveSpace Return a value indicating whether whitespace is preserved everywhere in the document.
GetRange
(Inherited from ListHtmlNodeItem)
GetRoot Return the root-most node collection of the specified collection.
GetType
(Inherited from Object)
GetUniqueIds Return a list of unique node ids found in the collection and its descendants.
IndexOf(T)
(Inherited from ListHtmlNodeItem)
IndexOf(T, Int32)
(Inherited from ListHtmlNodeItem)
IndexOf(T, Int32, Int32)
(Inherited from ListHtmlNodeItem)
Insert(HtmlNodeItem) Insert a new node prior to the specified Node in this collection.
Insert(HtmlNodeItem, String) Insert a new node prior to the specified Node in this collection.
Insert(Int32, T) Insert an item into the collection at the specified ordinal index.
(Inherited from ChangeObjectCollectionT)
Insert(String, String) Insert the provided HTML before the specified Node in the appropriate level.
Insert(Int32, String, Boolean) Insert a new node prior to the specified Node in this collection.
InsertAfter(HtmlNodeItem) Insert a new node after the specified Node in this collection.
InsertAfter(HtmlNodeItem, HtmlNodeItem) Insert a new node after the specified Node in this collection.
InsertRange Insert a range of items at the specified ordinal index.
(Inherited from ChangeObjectCollectionT)
LastIndexOf(T)
(Inherited from ListHtmlNodeItem)
LastIndexOf(T, Int32)
(Inherited from ListHtmlNodeItem)
LastIndexOf(T, Int32, Int32)
(Inherited from ListHtmlNodeItem)
MemberwiseClone
(Inherited from Object)
OnCollectionChanged Raises the CollectionChanged event when the contents of the collection have changed.
(Inherited from ChangeObjectCollectionT)
OnItemPropertyChanged Raises the ItemPropertyChanged event when the value of an item property has changed.
(Inherited from ChangeObjectCollectionT)
Remove Remove the first matching instance of the specified item from the collection.
(Inherited from ChangeObjectCollectionT)
RemoveAll Recursively remove all items matching the specified pattern.
RemoveAt Remove the item at the specified ordinal index of the collection.
(Inherited from ChangeObjectCollectionT)
RemoveRange Remove a range of items from the collection.
(Inherited from ChangeObjectCollectionT)
ResetParent Reset the parent property on the child nodes and their descendants.
Reverse
(Inherited from ListHtmlNodeItem)
Reverse(Int32, Int32)
(Inherited from ListHtmlNodeItem)
Sort
(Inherited from ListHtmlNodeItem)
Sort(ComparisonT)
(Inherited from ListHtmlNodeItem)
Sort(IComparerT)
(Inherited from ListHtmlNodeItem)
Sort(Int32, Int32, IComparerT)
(Inherited from ListHtmlNodeItem)
ToArray
(Inherited from ListHtmlNodeItem)
ToString
(Inherited from Object)
Trim Trim blank text from elements in the specified collection and its descendants.
TrimExcess
(Inherited from ListHtmlNodeItem)
TrueForAll
(Inherited from ListHtmlNodeItem)

Events

CollectionChanged Raised when the contents of the collection have changed.
(Inherited from ChangeObjectCollectionT)
ItemPropertyChanged Raised when the value of a property on an individual item has changed.
(Inherited from ChangeObjectCollectionT)

Explicit Interface Implementations

See Also