[This is preliminary documentation and is subject to change.]

Gets or sets the element at the specified index.

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public virtual T this[
	int index
] { get; set; }
Visual Basic
Public Overridable Default Property Item ( _
	index As Integer _
) As T
	Get
	Set
Visual C++
public:
virtual property T default[int index] {
	T get (int index);
	void set (int index, T value);
}
F#
abstract Item : 'T with get, set
override Item : 'T with get, set
JScript
JScript does not support indexed properties.

Parameters

index
Type: System..::..Int32
The zero-based index of the element to get or set.

Return Value

The element at the specified index.

Implements

IList<(Of <(<'T>)>)>..::..Item[([( Int32])])

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionindex is not a valid index in the ListWithEvents<(Of <(<'T>)>)>.
System..::..InvalidOperationExceptionLocked is True (in setter)
System..::..OperationCanceledExceptionOperation is canceled in eventhandler and CancelError is true
System..::..ExceptionAny Exception can be thrown by event handler of the ItemChanging event -or- Any excption may be thrown by OnAdding(ICollection, Nullable<(Of <<'(Int32>)>>), Boolean) or OnRemoving(ICollection, Nullable<(Of <<'(Int32>)>>)) when AllowItemCancel is true.

See Also

Collapse/expand Version History

1.5.2

  • When T