WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HTMLEventImpl - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HTMLEventImpl

    This class must be inherited by the developer for each element where the HTML element supports events.

    Inheritance
    System.Object
    HTMLEventImpl
    HashElementEvents
    Implements
    IHTMLEvent
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.HTMLUI
    Assembly: Syncfusion.HTMLUI.Windows.dll
    Syntax
    public abstract class HTMLEventImpl : IHTMLEvent, IDisposable

    Constructors

    HTMLEventImpl(IHTMLElement, String)

    Initializes a new instance of the HTMLEventImpl class

    Declaration
    protected HTMLEventImpl(IHTMLElement parent, string name)
    Parameters
    Type Name Description
    IHTMLElement parent

    Parent of the event.

    System.String name

    Name of the event.

    Fields

    m_events

    List of events which were attached to the element.

    Declaration
    protected ArrayList m_events
    Field Value
    Type Description
    System.Collections.ArrayList

    Properties

    Name

    Gets or sets the unique name of the event.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String

    Parent

    Gets or sets the parent element of the current event.

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

    Methods

    AttachEvent(EventHandler)

    Attaches user method to the current event.

    Declaration
    public void AttachEvent(EventHandler handler)
    Parameters
    Type Name Description
    System.EventHandler handler

    User delegate on method which must catch the event raising.

    DetachEvent(EventHandler)

    Detaches user method to the current event.

    Declaration
    public void DetachEvent(EventHandler handler)
    Parameters
    Type Name Description
    System.EventHandler handler

    User delegate on method which must catch the event raising.

    Dispose()

    On dispose, detaches all events from the HTML element.

    Declaration
    public void Dispose()

    Finalize()

    Finalizes an instance of the HTMLEventImpl class

    Declaration
    protected void Finalize()

    OnNameChanged(ValueChangedEventArgs)

    Called by property set part on value change. This is best place for custom logic.

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

    ValueChangedEventArgs instance

    OnParentChanged(ValueChangedEventArgs)

    Called by property set part on value change. This is best place for custom logic.

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

    ValueChangedEventArgs instance

    RaiseEvent(EventArgs)

    Raises event for user.

    Declaration
    public abstract void RaiseEvent(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    Reference on input parameters.

    RaiseNameChanged(ValueChangedEventArgs)

    Raises NameChanged event when property value changes.

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

    ValueChangedEventArgs instance

    RaiseParentChanged(ValueChangedEventArgs)

    Raises ParentChanged event when property value changes.

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

    ValueChangedEventArgs instance

    Events

    NameChanged

    Utility event. Helps developer to catch any changes of class property. Name value.

    Declaration
    public event ValueChangedEventHandler NameChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    ParentChanged

    Utility event. Helps developer to catch any changes of class property. Parent value.

    Declaration
    public event ValueChangedEventHandler ParentChanged
    Event Type
    Type Description
    ValueChangedEventHandler

    Implements

    IHTMLEvent
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved