IList
Last updated
Was this helpful?
Last updated
Was this helpful?
Defines the basic interactions for controls that implement the IList interface.
Type parameters
T
The type of the elements of source.
Derived ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳ ↳
Gets all the items of this element.
Property Value
Gets the control on the specified index.
Parameters
The selected index.
Property Value
Gets the first control in the list with the specified text.
Parameters
The control's text to query.
Property Value
Returns the element at a specified index in a sequence.
Parameters
The zero-based index of the element to retrieve.
Returns
Exceptions
Returns the first element in a sequence that satisfies a specified condition.
Returns
Exceptions
Returns the first element in a sequence that satisfies a specified condition.
Parameters
A function to test each element for a condition.
Returns
Exceptions
Returns the index of the first occurrence of a given value in a range of this list.
Type parameters
TElement
The type of the elements of source.
Parameters
The zero-based index of the element to retrieve.
Returns
Exceptions
The list is searched forwards from beginning to end. The elements of the list are compared to the given value using the Object.Equals method.
index
text
index
The element at the specified position in the source sequence.
Source or predicate is null.
No item is found on the index.
The first element in the sequence that passes the test in the specified predicate function.
Source or predicate is null.
No element satisfies the condition in predicate. -or- The source sequence is empty.
predicate
The first element in the sequence that passes the test in the specified predicate function.
Source or predicate is null.
No element satisfies the condition in predicate. -or- The source sequence is empty.
element
Returns the index of the item, otherwise, -1 if the item isn't in the list.
Source or predicate is null.
item index is not found on the collection.