Compartilhar via


DependencyObjectCollection.InsertAt(UInt32, DependencyObject) Método

Definição

Insere o item especificado no índice especificado.

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

Parâmetros

index
UInt32

unsigned int

uint32_t

O índice no qual definir o valor.

value
DependencyObject

O valor a ser definido.

Implementações

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)

Comentários

InsertAt expande a coleção e move todos os itens de índice subsequentes em um. Por outro lado, SetAt substitui o item no índice e a contagem de coleções permanece a mesma.

Observação

A API equivalente do Microsoft .NET é Insert.

Aplica-se a