menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLFormatsCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HTMLFormatsCollection

    Collection for formats.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    EventBaseCollection
    HTMLFormatsCollection
    Implements
    IHTMLFormatsCollection
    System.Collections.IList
    IHTMLCollection
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable
    Inherited Members
    EventBaseCollection.Cleared
    EventBaseCollection.Clearing
    EventBaseCollection.Inserted
    EventBaseCollection.Inserting
    EventBaseCollection.OnChanged
    EventBaseCollection.OnClear()
    EventBaseCollection.OnClearComplete()
    EventBaseCollection.OnInsert(Int32, Object)
    EventBaseCollection.OnInsertComplete(Int32, Object)
    EventBaseCollection.OnRemove(Int32, Object)
    EventBaseCollection.OnRemoveComplete(Int32, Object)
    EventBaseCollection.OnSet(Int32, Object, Object)
    EventBaseCollection.OnSetComplete(Int32, Object, Object)
    EventBaseCollection.QuietMode
    EventBaseCollection.RaiseOnChangedEvent()
    EventBaseCollection.Removed
    EventBaseCollection.Removing
    EventBaseCollection.Set
    EventBaseCollection.Setting
    System.Collections.CollectionBase.Capacity
    System.Collections.CollectionBase.Clear()
    System.Collections.CollectionBase.Count
    System.Collections.CollectionBase.GetEnumerator()
    System.Collections.CollectionBase.InnerList
    System.Collections.CollectionBase.List
    System.Collections.CollectionBase.OnValidate(System.Object)
    System.Collections.CollectionBase.RemoveAt(System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.CollectionBase.System.Collections.ICollection.IsSynchronized
    System.Collections.CollectionBase.System.Collections.ICollection.SyncRoot
    System.Collections.CollectionBase.System.Collections.IList.Add(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Contains(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.get_Item(System.Int32)
    System.Collections.CollectionBase.System.Collections.IList.IndexOf(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.Insert(System.Int32, System.Object)
    System.Collections.CollectionBase.System.Collections.IList.IsFixedSize
    System.Collections.CollectionBase.System.Collections.IList.IsReadOnly
    System.Collections.CollectionBase.System.Collections.IList.Item[System.Int32]
    System.Collections.CollectionBase.System.Collections.IList.Remove(System.Object)
    System.Collections.CollectionBase.System.Collections.IList.set_Item(System.Int32, System.Object)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public class HTMLFormatsCollection : EventBaseCollection, IHTMLFormatsCollection, IList, IHTMLCollection, ICollection, IEnumerable, IDisposable

    Constructors

    HTMLFormatsCollection()

    Initializes a new instance of the HTMLFormatsCollection class

    Declaration
    public HTMLFormatsCollection()

    HTMLFormatsCollection(IHTMLElement)

    Initializes a new instance of the HTMLFormatsCollection class

    Declaration
    public HTMLFormatsCollection(IHTMLElement parent)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent element.

    Properties

    Item[Int32]

    Gets or sets the attribute with the specified index.

    Declaration
    public IHTMLFormat this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    An integer index value

    Property Value
    Type
    IHTMLFormat

    Item[String]

    Gets or sets the format with the specified name. Name is case insensitive.

    Declaration
    public IHTMLFormat this[string name] { get; set; }
    Parameters
    Type Name Description
    System.String name

    A string value

    Property Value
    Type
    IHTMLFormat

    Parent

    Gets the parent element of the current collection.

    Declaration
    public IHTMLElement Parent { get; }
    Property Value
    Type
    IHTMLElement

    Methods

    Add(IHTMLFormat)

    Adds the specified format into the collection.

    Declaration
    public int Add(IHTMLFormat format)
    Parameters
    Type Name Description
    IHTMLFormat format

    Format for adding into collection.

    Returns
    Type Description
    System.Int32

    Index in the collection.

    AddRange(IHTMLFormat[])

    Adds the range of formats into the collection.

    Declaration
    public void AddRange(IHTMLFormat[] formats)
    Parameters
    Type Name Description
    IHTMLFormat[] formats

    Array of formats.

    Contains(IHTMLFormat)

    Indicates whether the collection contains the specified format.

    Declaration
    public bool Contains(IHTMLFormat format)
    Parameters
    Type Name Description
    IHTMLFormat format

    Format reference for check.

    Returns
    Type Description
    System.Boolean

    True if the collection contains such a format; false otherwise.

    Contains(String)

    Indicates whether the collection contains the format with specified name.

    Declaration
    public bool Contains(string name)
    Parameters
    Type Name Description
    System.String name

    Case insensitive name of the format.

    Returns
    Type Description
    System.Boolean

    True if the collection contains such a format; false otherwise.

    Dispose()

    Clears all resources.

    Declaration
    public void Dispose()

    Finalize()

    Finalizes an instance of the HTMLFormatsCollection class

    Declaration
    protected void Finalize()

    IndexOf(IHTMLFormat)

    Returns the index of the specified format; if collection does not contain such format, it will return -1.

    Declaration
    public int IndexOf(IHTMLFormat format)
    Parameters
    Type Name Description
    IHTMLFormat format

    Format whose index is needed.

    Returns
    Type Description
    System.Int32

    Zero-based index of format; -1 otherwise.

    IndexOf(String)

    Returns the index of format of the format which contains the specified name.

    Declaration
    public int IndexOf(string name)
    Parameters
    Type Name Description
    System.String name

    Case insensitive name of the format.

    Returns
    Type Description
    System.Int32

    Zero-based index of format; -1 otherwise.

    Remove(IHTMLFormat)

    Removes the specified format from the collection, if it belongs to it.

    Declaration
    public void Remove(IHTMLFormat format)
    Parameters
    Type Name Description
    IHTMLFormat format

    Reference of the format which must be removed from the collection.

    Remove(String)

    Removes the format with the specified name.

    Declaration
    public void Remove(string name)
    Parameters
    Type Name Description
    System.String name

    Case insensitive name of format which must be removed.

    Implements

    IHTMLFormatsCollection
    System.Collections.IList
    IHTMLCollection
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.IDisposable

    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 - 2025 Syncfusion Inc. All Rights Reserved