DoubleKeyFrameCollection Classe

Definição

Representa uma coleção de objetos DoubleKeyFrame que podem ser acessados individualmente pelo índice. DoubleKeyFrameCollection é o valor da propriedade DoubleAnimationUsingKeyFrames.KeyFrames .

public ref class DoubleKeyFrameCollection sealed : IIterable<DoubleKeyFrame ^>, IVector<DoubleKeyFrame ^>
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DoubleKeyFrameCollection final : IIterable<DoubleKeyFrame>, IVector<DoubleKeyFrame>
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class DoubleKeyFrameCollection final : IIterable<DoubleKeyFrame>, IVector<DoubleKeyFrame>
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DoubleKeyFrameCollection : IEnumerable<DoubleKeyFrame>, IList<DoubleKeyFrame>
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class DoubleKeyFrameCollection : IEnumerable<DoubleKeyFrame>, IList<DoubleKeyFrame>
Public NotInheritable Class DoubleKeyFrameCollection
Implements IEnumerable(Of DoubleKeyFrame), IList(Of DoubleKeyFrame)
Herança
Object Platform::Object IInspectable DoubleKeyFrameCollection
Atributos
Implementações

Requisitos do Windows

Família de dispositivos
Windows 10 (introduzida na 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v1.0)

Comentários

Enumerando a coleção em C# ou Microsoft Visual Basic

Um DoubleKeyFrameCollection é enumerável, portanto, você pode usar a sintaxe específica da linguagem, como foreach em C# para enumerar os itens na coleção. O compilador faz a conversão de tipo para você e você não precisará converter IEnumerable<DoubleKeyFrame> explicitamente. Se você precisar converter explicitamente, por exemplo, se quiser chamar GetEnumerator, converta para IEnumerable<T> com uma restrição DoubleKeyFrame .

Construtores

DoubleKeyFrameCollection()

Inicializa uma nova instância da classe DoubleKeyFrameCollection .

Propriedades

Size

Obtém o tamanho (contagem) da coleção.

Métodos

Append(DoubleKeyFrame)

Adiciona um novo item à coleção.

Clear()

Remove todos os itens da coleção.

First()

Retorna o iterador para iteração sobre os itens da coleção.

GetAt(UInt32)

Retorna o DoubleKeyFrame localizado no índice especificado.

GetMany(UInt32, DoubleKeyFrame[])

Recupera vários elementos em uma única passagem pelo iterador.

GetView()

Obtém uma exibição imutável na coleção.

IndexOf(DoubleKeyFrame, UInt32)

Recupera o índice do item especificado.

InsertAt(UInt32, DoubleKeyFrame)

Insere o item especificado no índice especificado.

RemoveAt(UInt32)

Remove o item no índice especificado.

RemoveAtEnd()

Remove o último item da coleção.

ReplaceAll(DoubleKeyFrame[])

Inicialmente limpa a coleção e insere a matriz fornecida como novos itens.

SetAt(UInt32, DoubleKeyFrame)

Define o valor no índice especificado como o valor DoubleKeyFrame especificado.

Aplica-se a

Confira também