HtmlAttributeCollection Class

Collection of HtmlAttributeItem Items.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public class HtmlAttributeCollection : ChangeObjectCollection<HtmlAttributeItem>
Inheritance
Object    ListHtmlAttributeItem    ChangeObjectCollectionHtmlAttributeItem    HtmlAttributeCollection

Constructors

HtmlAttributeCollection Create a new instance of the HtmlAttributeCollection Item.
HtmlAttributeCollection(Boolean) Create a new instance of the HtmlAttributeCollection Item.

Properties

AutoCreate Get/Set a value indicating whether elements will be created automatically if they don't exist when accessed by index.
Capacity
(Inherited from ListHtmlAttributeItem)
Count
(Inherited from ListHtmlAttributeItem)
ItemInt32
(Inherited from ListHtmlAttributeItem)
ItemString Get an Item from the Collection by its name.
Unquoted Get a list of unquoted Attributes.

Methods

Add Create a new HtmlAttributeItem, add it to the Collection, and return it to the caller.
Add(T) Add an item to the collection.
(Inherited from ChangeObjectCollectionT)
Add(String) Create a new HtmlAttributeItem, add it to the Collection, and return it to the caller.
Add(String, String) Create a new HtmlAttributeItem, add it to the Collection, and return it to the caller.
AddClass Add a class reference to the class attribute, if unique.
AddRange Add a range of items to the collection.
(Inherited from ChangeObjectCollectionT)
AddUnique Add an Attribute to the Collection if it has a unique name.
AsReadOnly
(Inherited from ListHtmlAttributeItem)
BinarySearch(T)
(Inherited from ListHtmlAttributeItem)
BinarySearch(T, IComparerT)
(Inherited from ListHtmlAttributeItem)
BinarySearch(Int32, Int32, T, IComparerT)
(Inherited from ListHtmlAttributeItem)
Clear Remove all of the elements from the property collection.
(Inherited from ChangeObjectCollectionT)
Clone Return a deep copy of the caller's attribute collection.
Contains
(Inherited from ListHtmlAttributeItem)
ContainsAny Return a value indicating whether this collection contains any of the specified names.
ConvertAllTOutput
(Inherited from ListHtmlAttributeItem)
CopyTo(T)
(Inherited from ListHtmlAttributeItem)
CopyTo(T, Int32)
(Inherited from ListHtmlAttributeItem)
CopyTo(Int32, T, Int32, Int32)
(Inherited from ListHtmlAttributeItem)
Equals
(Inherited from Object)
Exists
(Inherited from ListHtmlAttributeItem)
Finalize
(Inherited from Object)
Find
(Inherited from ListHtmlAttributeItem)
FindAll
(Inherited from ListHtmlAttributeItem)
FindIndex(PredicateT)
(Inherited from ListHtmlAttributeItem)
FindIndex(Int32, PredicateT)
(Inherited from ListHtmlAttributeItem)
FindIndex(Int32, Int32, PredicateT)
(Inherited from ListHtmlAttributeItem)
FindLast
(Inherited from ListHtmlAttributeItem)
FindLastIndex(PredicateT)
(Inherited from ListHtmlAttributeItem)
FindLastIndex(Int32, PredicateT)
(Inherited from ListHtmlAttributeItem)
FindLastIndex(Int32, Int32, PredicateT)
(Inherited from ListHtmlAttributeItem)
ForEach
(Inherited from ListHtmlAttributeItem)
GetAttributes Return a collection of attributes matching the specified names in the provided node.
GetAttributeValue Return the value of the specified attribute from the provided node.
GetEnumerator
(Inherited from ListHtmlAttributeItem)
GetHashCode
(Inherited from Object)
GetRange
(Inherited from ListHtmlAttributeItem)
GetStyle(String) Return the value of the specified style in the provided node.
GetStyle(HtmlNodeItem, String) Return the value of the specified style in the provided node.
GetType
(Inherited from Object)
GetValue Return the value of the specified attribute from the list.
HasAttribute Return a value indicating whether the specified attribute is defined in this collection.
HasClass Return a value indicating whether the specified class is defined in this collection.
IndexOf(T)
(Inherited from ListHtmlAttributeItem)
IndexOf(T, Int32)
(Inherited from ListHtmlAttributeItem)
IndexOf(T, Int32, Int32)
(Inherited from ListHtmlAttributeItem)
Insert Insert an item into the collection at the specified ordinal index.
(Inherited from ChangeObjectCollectionT)
InsertClass Insert a class reference in the specified index of the class attribute.
InsertRange Insert a range of items at the specified ordinal index.
(Inherited from ChangeObjectCollectionT)
LastIndexOf(T)
(Inherited from ListHtmlAttributeItem)
LastIndexOf(T, Int32)
(Inherited from ListHtmlAttributeItem)
LastIndexOf(T, Int32, Int32)
(Inherited from ListHtmlAttributeItem)
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(T) Remove the first matching instance of the specified item from the collection.
(Inherited from ChangeObjectCollectionT)
Remove(String) Remove the named attribute.
RemoveAll Remove all items matching the condition from the collection.
(Inherited from ChangeObjectCollectionT)
RemoveAt Remove the item at the specified ordinal index of the collection.
(Inherited from ChangeObjectCollectionT)
RemoveClass Remove a class reference from the class attribute, if present.
RemoveRange Remove a range of items from the collection.
(Inherited from ChangeObjectCollectionT)
RemoveStyle Remove the specified style from the style attribute within the caller's collection.
Reverse
(Inherited from ListHtmlAttributeItem)
Reverse(Int32, Int32)
(Inherited from ListHtmlAttributeItem)
SetAttribute Set the value of the specified attribute in the provided node.
SetAttributeValue Set the value of the specified attribute from the provided node, creating it if it didn't already exist.
SetStyle(String, String) Set the value of the specified style.
SetStyle(HtmlNodeItem, String, String) Set the value of the specified style in the provided node.
Sort
(Inherited from ListHtmlAttributeItem)
Sort(ComparisonT)
(Inherited from ListHtmlAttributeItem)
Sort(IComparerT)
(Inherited from ListHtmlAttributeItem)
Sort(Int32, Int32, IComparerT)
(Inherited from ListHtmlAttributeItem)
StyleExists Return a value indicating whether the specified style exists in the supplied attributes collection.
ToArray
(Inherited from ListHtmlAttributeItem)
ToString
(Inherited from Object)
TrimExcess
(Inherited from ListHtmlAttributeItem)
TrueForAll
(Inherited from ListHtmlAttributeItem)

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