menu

WinForms

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

    Show / Hide Table of Contents

    Class HTMLEventsCollection

    Implementation of events collection.

    Inheritance
    System.Object
    System.Collections.CollectionBase
    EventBaseCollection
    HTMLEventsCollection
    Implements
    System.Collections.IList
    IHTMLEventsCollection
    IHTMLCollection
    System.Collections.ICollection
    System.Collections.IEnumerable
    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 HTMLEventsCollection : EventBaseCollection, IList, IHTMLEventsCollection, IHTMLCollection, ICollection, IEnumerable

    Constructors

    HTMLEventsCollection(IHTMLElement)

    Initializes a new instance of the HTMLEventsCollection class

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

    Element which is the parent of the collection.

    Properties

    Item[String]

    Returns the event with the specified name. If event is not supported by the element, then it will return NULL.

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

    A string variable

    Property Value
    Type
    IHTMLEvent

    Parent

    Gets or sets the parent element of the collection.

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

    Methods

    AttachEvent(String, EventHandler)

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

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

    Event name.

    System.EventHandler handler

    Delegate to attach.

    AttachEvent(String, EventHandler[])

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

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

    Event name.

    System.EventHandler[] handlers

    Array of the delegates.

    Contains(String)

    Indicates whether event with the specified name is supported.

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

    Name of the event.

    Returns
    Type Description
    System.Boolean

    True if such an event is supported.

    CopyTo(IHTMLEventsCollection[], Int32)

    Overridden. Copies to the specified array.

    Declaration
    public void CopyTo(IHTMLEventsCollection[] array, int index)
    Parameters
    Type Name Description
    IHTMLEventsCollection[] array

    Destination array of events.

    System.Int32 index

    Start index.

    DetachEvent(String, EventHandler)

    Overloaded. Detaches delegate of the specified event.

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

    Event name.

    System.EventHandler handler

    Delegate to detach.

    DetachEvent(String, EventHandler[])

    Detaches delegates of the specified event.

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

    Event name.

    System.EventHandler[] handlers

    Array of delegates.

    OnParentChanged(ValueChangedEventArgs)

    Method called by parent property set part. This is the best place to write any logic dependent on the parent property.

    Declaration
    protected virtual void OnParentChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    A ValueChangedEventArgs instance

    RaiseParentChanged(ValueChangedEventArgs)

    Method raises the ParentChanged event.

    Declaration
    protected void RaiseParentChanged(ValueChangedEventArgs args)
    Parameters
    Type Name Description
    ValueChangedEventArgs args

    A ValueChangedEventArgs instance

    Events

    ParentChanged

    Utility event. Raised when parent property changes.

    Declaration
    public event ValueChangedEventHandler ParentChanged
    Event Type
    Type
    ValueChangedEventHandler

    Implements

    System.Collections.IList
    IHTMLEventsCollection
    IHTMLCollection
    System.Collections.ICollection
    System.Collections.IEnumerable

    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