WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Interface IHTMLAttributesCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Interface IHTMLAttributesCollection

    Collection that stores and provides access to HTML element attributes.

    Inherited Members
    System.Collections.IList.Add(System.Object)
    System.Collections.IList.Contains(System.Object)
    System.Collections.IList.Clear()
    System.Collections.IList.IndexOf(System.Object)
    System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.IList.Remove(System.Object)
    System.Collections.IList.RemoveAt(System.Int32)
    System.Collections.IList.IsReadOnly
    System.Collections.IList.IsFixedSize
    IHTMLCollection.Parent
    System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.ICollection.Count
    System.Collections.ICollection.SyncRoot
    System.Collections.ICollection.IsSynchronized
    System.Collections.IEnumerable.GetEnumerator()
    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 Description
    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 Description
    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.

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved