menu

WinForms

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

    Show / Hide Table of Contents

    Interface IHTMLEventsCollection

    Collection that stores and provides access to the events of the HTML element.

    Inherited Members
    IHTMLCollection.Parent
    System.Collections.ICollection.CopyTo(System.Array, System.Int32)
    System.Collections.ICollection.Count
    System.Collections.ICollection.IsSynchronized
    System.Collections.ICollection.SyncRoot
    System.Collections.IEnumerable.GetEnumerator()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public interface IHTMLEventsCollection : IHTMLCollection, ICollection, IEnumerable

    Properties

    Item[String]

    Returns the event interface with the specified name. Name is case insensitive.

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

    Name value

    Property Value
    Type
    IHTMLEvent

    Methods

    AttachEvent(String, EventHandler)

    Attaches user delegate to the specified event. If event does not exists in the collection and element supports such an event then it will create a new instance of the event class to which the delegate will be attached.

    Declaration
    void AttachEvent(string name, EventHandler handler)
    Parameters
    Type Name Description
    System.String name

    Event name.

    System.EventHandler handler

    Delegete to attach.

    AttachEvent(String, EventHandler[])

    Attaches user delegates to the specified event. If event does not exists in the collection and element supports such an event then it will create a new instance of the event class to which the delegate will be attached.

    Declaration
    void AttachEvent(string name, EventHandler[] handlers)
    Parameters
    Type Name Description
    System.String name

    Event name

    System.EventHandler[] handlers

    Array of delegates.

    Contains(String)

    Indicates whether the event with the specified name is supported by the element.

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

    Name of the event.

    Returns
    Type Description
    System.Boolean

    TRUE if element exists in collection.

    DetachEvent(String, EventHandler)

    Detaches delegete of the specified event.

    Declaration
    void DetachEvent(string name, EventHandler handler)
    Parameters
    Type Name Description
    System.String name

    Event name.

    System.EventHandler handler

    Delegate to detach.

    DetachEvent(String, EventHandler[])

    Detach delegetes of specified event.

    Declaration
    void DetachEvent(string name, EventHandler[] handlers)
    Parameters
    Type Name Description
    System.String name

    event name

    System.EventHandler[] handlers

    array of delegates

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    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