DoubleKeyFrameCollection クラス

定義

インデックスによって個別にアクセスできる DoubleKeyFrame オブジェクトのコレクションを表します。 DoubleKeyFrameCollection は 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)
継承
Object Platform::Object IInspectable DoubleKeyFrameCollection
属性
実装

Windows の要件

デバイス ファミリ
Windows 10 (10.0.10240.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v1.0 で導入)

注釈

C# または Microsoft Visual Basic でのコレクションの列挙

DoubleKeyFrameCollection は列挙可能であるため、C# の foreach などの言語固有の構文を使用してコレクション内の項目を列挙できます。 コンパイラによって型キャストが行われ、明示的に キャストする IEnumerable<DoubleKeyFrame> 必要はありません。 GetEnumerator を呼び出す場合など、明示的にキャストする必要がある場合は、DoubleKeyFrame 制約を使用して IEnumerable<T> にキャストします。

コンストラクター

DoubleKeyFrameCollection()

DoubleKeyFrameCollection クラスの新しいインスタンスを初期化します。

プロパティ

Size

コレクションのサイズ (カウント) を取得します。

メソッド

Append(DoubleKeyFrame)

新しい項目をコレクションに追加します。

Clear()

コレクションからすべての項目を削除します。

First()

コレクション内の項目を反復処理するための反復子を返します。

GetAt(UInt32)

指定したインデックスにある DoubleKeyFrame を返します。

GetMany(UInt32, DoubleKeyFrame[])

反復子を 1 回のパスで複数の要素を取得します。

GetView()

コレクションに変更できないビューを取得します。

IndexOf(DoubleKeyFrame, UInt32)

指定した項目のインデックスを取得します。

InsertAt(UInt32, DoubleKeyFrame)

指定したインデックス位置に指定した項目を挿入します。

RemoveAt(UInt32)

指定したインデックス位置にある項目を削除します。

RemoveAtEnd()

コレクション内の最後の項目を削除します。

ReplaceAll(DoubleKeyFrame[])

最初にコレクションをクリアし、指定された配列を新しい項目として挿入します。

SetAt(UInt32, DoubleKeyFrame)

指定したインデックスの値を、指定した DoubleKeyFrame 値に設定します。

適用対象

こちらもご覧ください