Share via


ObjectKeyFrameCollection Classe

Definizione

Rappresenta un insieme di oggetti ObjectKeyFrame a cui è possibile accedere singolarmente in base all'indice. ObjectKeyFrameCollection è il valore della proprietà ObjectAnimationUsingKeyFrames.KeyFrames .

public ref class ObjectKeyFrameCollection sealed : IIterable<ObjectKeyFrame ^>, IVector<ObjectKeyFrame ^>
/// [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 ObjectKeyFrameCollection final : IIterable<ObjectKeyFrame>, IVector<ObjectKeyFrame>
/// [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 ObjectKeyFrameCollection final : IIterable<ObjectKeyFrame>, IVector<ObjectKeyFrame>
[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 ObjectKeyFrameCollection : IEnumerable<ObjectKeyFrame>, IList<ObjectKeyFrame>
[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 ObjectKeyFrameCollection : IEnumerable<ObjectKeyFrame>, IList<ObjectKeyFrame>
Public NotInheritable Class ObjectKeyFrameCollection
Implements IEnumerable(Of ObjectKeyFrame), IList(Of ObjectKeyFrame)
Ereditarietà
Object Platform::Object IInspectable ObjectKeyFrameCollection
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Enumerazione della raccolta in C# o Microsoft Visual Basic

ObjectKeyFrameCollection è enumerabile, quindi è possibile usare una sintassi specifica del linguaggio, ad esempio foreach in C# per enumerare gli elementi nella raccolta. Il compilatore esegue automaticamente il cast dei tipi e non è necessario eseguire il cast in IEnumerable<Object> modo esplicito. Se è necessario eseguire il cast in modo esplicito, ad esempio se si vuole chiamare GetEnumerator, eseguire il cast a IEnumerable<T> con un vincolo Object .

Costruttori

ObjectKeyFrameCollection()

Inizializza una nuova istanza della classe ObjectKeyFrameCollection .

Proprietà

Size

Ottiene le dimensioni (conteggio) dell'insieme.

Metodi

Append(ObjectKeyFrame)

Aggiunge un nuovo elemento alla raccolta.

Clear()

Rimuove tutti gli elementi dalla raccolta.

First()

Restituisce l'iteratore per l'iterazione sugli elementi della raccolta.

GetAt(UInt32)

Restituisce l'elemento che si trova in corrispondenza dell'indice specificato.

GetMany(UInt32, ObjectKeyFrame[])

Recupera più elementi in un singolo pass-through dell'iteratore.

GetView()

Ottiene una visualizzazione non modificabile nella raccolta.

IndexOf(ObjectKeyFrame, UInt32)

Recupera l'indice dell'elemento specificato.

InsertAt(UInt32, ObjectKeyFrame)

Inserisce l'elemento specificato in corrispondenza dell'indice specificato.

RemoveAt(UInt32)

Rimuove l'elemento all'indice specificato.

RemoveAtEnd()

Rimuove l'ultimo elemento nella raccolta.

ReplaceAll(ObjectKeyFrame[])

Cancella inizialmente la raccolta, quindi inserisce la matrice specificata come nuovi elementi.

SetAt(UInt32, ObjectKeyFrame)

Imposta il valore in corrispondenza dell'indice specificato sul valore ObjectKeyFrame specificato.

Si applica a

Vedi anche