Skip to main content
Version: 3.5

ClientEventCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a collection of JavaScript events and their corresponding handler code.

public class ClientEventCollection : IList, ICollection, IEnumerable, IList<ClientEvent>, ICollection<ClientEvent>, IEnumerable<ClientEvent>

Constructors​

Instance memberClientEventCollection()​

Initializes a new instance of ClientEventCollection.

Properties​

Instance memberCount​

Int32: Returns the number of items in the collection.

Instance memberItem(index)​

ClientEvent: Returns the ClientEvent element at the specified index .

Methods​

Instance memberAdd(item)​

Adds the ClientEvent instance to the collection.

ParameterTypeDescription
itemClientEventClientEvent item to add to the collection.

Instance memberClear()​

Removes all the ClientEvent items from the collection.

Instance memberContains(item)​

Checks whether the specified item exists in the collection.

ParameterTypeDescription
itemClientEventClientEvent items to find in the collection.

Returns: Boolean. True of the collection contains the specified item .

Instance memberIndexOf(item)​

Returns the position of the specified item in the collection.

ParameterTypeDescription
itemClientEventClientEvent item to locate in the collection.

Returns: Int32. The index of the specified item or -1 if not found.

Instance memberInsert(index, item)​

Inserts the item into the collection at the specified index .

ParameterTypeDescription
indexInt32Position where to insert the item .
itemClientEventClientEvent item to insert into the collection.

Instance memberRemove(item)​

Removes the item from the collection.

ParameterTypeDescription
itemClientEventClientEvent instance to remove from the collection.

Returns: Boolean. True of the specified item was found and removed from the collection.

Instance memberRemoveAt(index)​

Removes the ClientEvent item at the location index .

ParameterTypeDescription
indexInt32Position of the item to remove from the collection.

Events​

Instance memberCollectionChanged​

CollectionChangeEventHandler Fired when the collection has changed.