HtmlNodeCollection Members

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlNodeCollection type exposes the following members.

Constructors

  NameDescription
Public methodHtmlNodeCollection
Initialize the HtmlNodeCollection with the base parent node

Methods

  NameDescription
Public methodAdd
Add node to the collection
Public methodAppend
Add node to the end of the collection
Public methodClear
Clears out the collection of HtmlNodes. Removes each nodes reference to parentnode, nextnode and prevnode
Public methodContains
Gets existence of node in collection
Public methodCopyTo
Copy collection to array
Public methodDescendants()()()()
Get all node descended from this collection
Public methodDescendants(String)
Get all node descended from this collection with matching name
Public methodElements()()()()
Gets all first generation elements in collection
Public methodElements(String)
Gets all first generation elements matching name
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 methodFindFirst(String)
Get first instance of node with name
Public methodStatic memberFindFirst(HtmlNodeCollection, String)
Get first instance of node in supplied collection
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetNodeIndex
Get index of node
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Get index of node
Public methodInsert
Insert node at index
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodNodes
All first generation nodes in collection
Public methodPrepend
Add node to the beginning of the collection
Public methodRemove(Int32)
Remove node at index
Public methodRemove(HtmlNode)
Remove node
Public methodRemoveAt
Remove HtmlNode at index
Public methodReplace
Replace node at index
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyCount
Gets the number of elements actually contained in the list.
Public propertyIsReadOnly
Is collection read only
Public propertyItem[([( Int32])])
Gets the node at the specified index.
Public propertyItem[([( String])])
Get node with tag name
Public propertyItem[([( HtmlNode])])
Gets a given node from the list.

See Also