ObservableCollectionExtended<(Of <(<'T>)>)>..::..SetItem Method

Replaces the element at the specified index.

Namespace:  Tortuga.Anchor.Collections
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


protected void SetItem(
	int index,
	T item
)
Protected Sub SetItem ( _
	index As Integer, _
	item As T _
)

Parameters

index
Type: Int32
The zero-based index of the element to replace.
item
Type: T
The new value for the element at the specified index.

Remarks


Do NOT invoke this method directly. This may be overridden to provide additional validation before an item is added to the collection.