HtmlAttributeCollection Class

A readonly collection of HTML attributes.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public class HtmlAttributeCollection : IEnumerable<HtmlAttribute>, 
	IEnumerable
Inheritance
Object    HtmlAttributeCollection
Implements
IEnumerableHtmlAttribute, IEnumerable

Remarks

A readonly collection of HTML attributes.

Constructors

HtmlAttributeCollection Initialize a new instance of the HtmlAttributeCollection class.

Properties

Count Get the number of attributes in the collection.
Item Get the HtmlAttribute at the specified index.

Methods

Contains(HtmlAttributeId) Check if an attribute exists.
Contains(String) Check if an attribute exists.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Get an enumerator for the attribute collection.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
IndexOf(HtmlAttributeId) Get the index of a desired attribute.
IndexOf(String) Get the index of a desired attribute.
MemberwiseClone Creates a shallow copy of the current Object.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)
TryGetValue(HtmlAttributeId, HtmlAttribute) Get an attribute from the collection if it exists.
TryGetValue(String, HtmlAttribute) Get an attribute from the collection if it exists.

Fields

Empty An empty attribute collection.

See Also