Skip to main content
Version: 3.5

DomainUpDownItemCollection

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Encapsulates a collection of objects for use by the DomainUpDown class.

public class DomainUpDownItemCollection : IList, ICollection, IEnumerable

Properties​

Instance memberCount​

Int32: Returns the number of items in the collection.

Instance memberIsReadOnly​

Boolean: Returns a value indicating whether this collection can be modified.

Instance memberItem(index)​

Object: Retrieves the item at the specified index within the collection.

Throws:

Methods​

Instance memberAdd(item)​

Adds an object to the end of the collection.

ParameterTypeDescription
itemObjectThe Object to be added to the end of the collection. The value can be null.

Returns: Int32. The index at which the item has been added.

Instance memberAddRange(items)​

Adds a collection of objects to the end of the collection.

ParameterTypeDescription
itemsObject[]Items to add to the end of the collection.

Instance memberClear()​

Removes all items from the DomainUpDown control.

Instance memberContains(item)​

Determines if the specified item is located within the collection.

ParameterTypeDescription
itemObjectAn object representing the item to locate in the collection.

Returns: Boolean. true if the item is located within the collection; otherwise, false.

Instance memberGetEnumerator()​

Returns an enumerator that can be used to iterate through the item collection.

Returns: IEnumerator. A IEnumerator that represents the item collection.

Instance memberIndexOf(item)​

Retrieves the index within the collection of the specified item.

ParameterTypeDescription
itemObjectAn object representing the item to locate in the collection.

Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.

Throws:

Instance memberInsert(index, item)​

Inserts an element into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index at which item should be inserted.
itemObjectThe Object to insert. The value can be null.

Throws:

Instance memberRemove(item)​

Removes the first occurrence of a specific object from the collection.

ParameterTypeDescription
itemObjectThe Object to remove from the collection. The value can be null.

Instance memberRemoveAt(index)​

Removes the element at the specified index of the collection.

ParameterTypeDescription
indexInt32The zero-based index of the element to remove.

Throws: