DependencyObjectCollection.SetAt(UInt32, DependencyObject) DependencyObjectCollection.SetAt(UInt32, DependencyObject) DependencyObjectCollection.SetAt(UInt32, DependencyObject) DependencyObjectCollection.SetAt(UInt32, DependencyObject) Method

Definition

Sets the value at the specified index to the DependencyObject value specified.

public : void SetAt(unsigned int index, DependencyObject value)
void SetAt(uint32_t index, DependencyObject value) const;
public void SetAt(UInt32 index, DependencyObject value)
Public Sub SetAt(index As UInt32, value As DependencyObject)

Parameters

index
UInt32 UInt32

The index at which to set the value.

value
DependencyObject DependencyObject

The value to set.

Remarks

InsertAt expands the collection and moves all subsequent index items by one. In contrast, SetAt replaces the item at the index, and the collection count remains the same.

Note

The equivalent Microsoft .NET API is Item (the indexer).