Interface IHTMLAttributesCollection
Collection that stores and provides access to HTML element attributes.
Inherited Members
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public interface IHTMLAttributesCollection : IList, IHTMLCollection, ICollection, IEnumerable
Properties
Item[Int32]
Gets or sets the attribute with the specified index. Type safe override.
Declaration
IHTMLAttribute this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index value |
Property Value
Type |
---|
IHTMLAttribute |
Item[String]
Gets or sets the attribute with the specified name. Name is case insensitive.
Declaration
IHTMLAttribute this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | string value |
Property Value
Type |
---|
IHTMLAttribute |
Methods
Add(IHTMLAttribute)
Adds an attribute to the collection.
Declaration
int Add(IHTMLAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
IHTMLAttribute | attr | Reference to the attribute. |
Returns
Type | Description |
---|---|
System.Int32 | Index of the attribute in array. |
Add(String)
Creates an attribute with the specified name and returns a reference on it.
Declaration
IHTMLAttribute Add(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the attribute. Case insensitive. |
Returns
Type | Description |
---|---|
IHTMLAttribute | Reference of the created attribute. |
Add(String, String)
Creates the attribute, adds it to the collection and returns a reference on it.
Declaration
IHTMLAttribute Add(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the attribute. Case insensitive. |
System.String | value | Value of the attribute. |
Returns
Type | Description |
---|---|
IHTMLAttribute | Reference of the created attribute. |
AddRange(IHTMLAttribute[])
Adds a range of attributes to the collection.
Declaration
void AddRange(IHTMLAttribute[] attributes)
Parameters
Type | Name | Description |
---|---|---|
IHTMLAttribute[] | attributes | Array of attributes. |
Contains(IHTMLAttribute)
Overloaded. Indicates whether the collection contains the specified attribute.
Declaration
bool Contains(IHTMLAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
IHTMLAttribute | attr | Attribute reference for check. |
Returns
Type | Description |
---|---|
System.Boolean | TRUE if the collection contains the attribute; FALSE otherwise. |
Contains(String)
Indicates whether the collection contains the attribute with the specified name.
Declaration
bool Contains(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the attribute. |
Returns
Type | Description |
---|---|
System.Boolean | TRUE if the collection contains the attribute; FALSE otherwise. |
IndexOf(IHTMLAttribute)
Overloaded. Returns the index of the attribute. If the collection does not contain the attribute -1 is returned.
Declaration
int IndexOf(IHTMLAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
IHTMLAttribute | attr | Attribute whose index is needed. |
Returns
Type | Description |
---|---|
System.Int32 | Zero based index of the attribute; -1 otherwise. |
IndexOf(String)
Returns the index of the attribute with the specified name.
Declaration
int IndexOf(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the attribute. |
Returns
Type | Description |
---|---|
System.Int32 | Zero based index of the attribute; -1 otherwise. |
Remove(IHTMLAttribute)
Overloaded. Removes the attribute from collection if it belongs to it.
Declaration
void Remove(IHTMLAttribute attr)
Parameters
Type | Name | Description |
---|---|---|
IHTMLAttribute | attr | Attribute whose reference must be removed from the collection. |
Remove(String)
Removes the attribute with the specified name.
Declaration
void Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Case insensitive name of the attribute which must be removed. |