Class HTMLEventImpl
This class must be inherited by the developer for each element where the HTML element supports events.
Namespace: Syncfusion.Windows.Forms.HTMLUI
Assembly: Syncfusion.HTMLUI.Windows.dll
Syntax
public abstract class HTMLEventImpl : Object, 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 |
|---|
| System.Collections.ArrayList |
Properties
Name
Gets or sets the unique name of the event.
Declaration
public string Name { get; set; }
Property Value
| Type |
|---|
| System.String |
Parent
Gets or sets the parent element of the current event.
Declaration
public IHTMLElement Parent { get; set; }
Property Value
| Type |
|---|
| IHTMLElement |
Methods
add_NameChanged(ValueChangedEventHandler)
Declaration
public void add_NameChanged(ValueChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueChangedEventHandler | value |
add_ParentChanged(ValueChangedEventHandler)
Declaration
public void add_ParentChanged(ValueChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueChangedEventHandler | value |
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 override 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 |
remove_NameChanged(ValueChangedEventHandler)
Declaration
public void remove_NameChanged(ValueChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueChangedEventHandler | value |
remove_ParentChanged(ValueChangedEventHandler)
Declaration
public void remove_ParentChanged(ValueChangedEventHandler value)
Parameters
| Type | Name | Description |
|---|---|---|
| ValueChangedEventHandler | value |
Events
NameChanged
Utility event. Helps developer to catch any changes of class property. Name value.
Declaration
public event ValueChangedEventHandler NameChanged
Event Type
| Type |
|---|
| ValueChangedEventHandler |
ParentChanged
Utility event. Helps developer to catch any changes of class property. Parent value.
Declaration
public event ValueChangedEventHandler ParentChanged
Event Type
| Type |
|---|
| ValueChangedEventHandler |