Udostępnij za pośrednictwem


ItemCollection.InsertAt(UInt32, Object) Method

Definition

Inserts the specified item at the specified index.

public:
 virtual void InsertAt(unsigned int index, Platform::Object ^ value) = IVector<Platform::Object ^>::InsertAt;
void InsertAt(uint32_t const& index, IInspectable const& value);
public void InsertAt(uint index, object value);
function insertAt(index, value)
Public Sub InsertAt (index As UInteger, value As Object)

Parameters

index
UInt32

unsigned int

uint32_t

The index at which to set the value.

value
Object

Platform::Object

IInspectable

The value to set.

Implements

M:Windows.Foundation.Collections.IVector1.InsertAt(System.UInt32,0) M:Windows.Foundation.Collections.IVector1.InsertAt(unsigned int,0) M:Windows.Foundation.Collections.IVector1.InsertAt(uint32_t,0)

Remarks

InsertAt expands the collection and moves all subsequent index items by one.

Applies to