ClientEventCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a collection of JavaScript events and their corresponding handler code.
- C#
- VB.NET
public class ClientEventCollection : IList, ICollection, IEnumerable, IList<ClientEvent>, ICollection<ClientEvent>, IEnumerable<ClientEvent>
Public Class ClientEventCollection
Inherits IList
Implements ICollection, IEnumerable, IList(Of ClientEvent), ICollection(Of ClientEvent), IEnumerable(Of ClientEvent)
Constructors
ClientEventCollection()
Initializes a new instance of ClientEventCollection.
Properties
Count
Int32: Returns the number of items in the collection.
Item(index)
ClientEvent: Returns the ClientEvent element at the specified index .
Methods
Add(item)
Adds the ClientEvent instance to the collection.
| Parameter | Type | Description |
|---|---|---|
| item | ClientEvent | ClientEvent item to add to the collection. |
Clear()
Removes all the ClientEvent items from the collection.
Contains(item)
Checks whether the specified item exists in the collection.
| Parameter | Type | Description |
|---|---|---|
| item | ClientEvent | ClientEvent items to find in the collection. |
Returns: Boolean. True of the collection contains the specified item .
IndexOf(item)
Returns the position of the specified item in the collection.
| Parameter | Type | Description |
|---|---|---|
| item | ClientEvent | ClientEvent item to locate in the collection. |
Returns: Int32. The index of the specified item or -1 if not found.
Insert(index, item)
Inserts the item into the collection at the specified index .
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Position where to insert the item . |
| item | ClientEvent | ClientEvent item to insert into the collection. |
Remove(item)
Removes the item from the collection.
| Parameter | Type | Description |
|---|---|---|
| item | ClientEvent | ClientEvent instance to remove from the collection. |
Returns: Boolean. True of the specified item was found and removed from the collection.
RemoveAt(index)
Removes the ClientEvent item at the location index .
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | Position of the item to remove from the collection. |
Events
CollectionChanged
CollectionChangeEventHandler Fired when the collection has changed.