HtmlAttributeCollection Members

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlAttributeCollection type exposes the following members.

Methods

  NameDescription
Public methodAdd(HtmlAttribute)
Adds supplied item to collection
Public methodAdd(String, String)
Adds a new attribute to the collection with the given values
Public methodAppend(String)
Creates and inserts a new attribute as the last attribute in the collection.
Public methodAppend(HtmlAttribute)
Inserts the specified attribute as the last attribute in the collection.
Public methodAppend(String, String)
Creates and inserts a new attribute as the last attribute in the collection.
Public methodAttributesWithName
Returns all attributes with specified name. Handles case insentivity
Public methodContains(String)
Checks for existance of attribute with given name
Public methodContains(HtmlAttribute)
Retreives existence of supplied item
Public methodCopyTo
Copies collection to array
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 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 methodIndexOf
Retrieves the index for the supplied item, -1 if not found
Public methodInsert
Inserts given item into collection at supplied index
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepend
Inserts the specified attribute as the first node in the collection.
Public methodRemove()()()()
Removes all attributes from the collection
Public methodRemove(String)
Removes an attribute from the list, using its name. If there are more than one attributes with this name, they will all be removed.
Public methodRemove(HtmlAttribute)
Removes a given attribute from the list.
Public methodRemoveAll
Remove all attributes in the list.
Public methodRemoveAt
Removes the attribute at the specified 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
Gets readonly status of colelction
Public propertyItem[([( Int32])])
Gets the attribute at the specified index.
Public propertyItem[([( String])])
Gets a given attribute from the list using its name.

See Also