Interface IHTMLEventsCollection
Collection that stores and provides access to the events of the HTML element.
Inherited Members
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 |