ColorKeyFrameCollection Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt eine Auflistung von ColorKeyFrame-Objekten dar, auf die einzeln per Index zugegriffen werden kann. ColorKeyFrameCollection ist der Wert der ColorAnimationUsingKeyFrames.KeyFrames-Eigenschaft .
public ref class ColorKeyFrameCollection sealed : IIterable<ColorKeyFrame ^>, IVector<ColorKeyFrame ^>
/// [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 ColorKeyFrameCollection final : IIterable<ColorKeyFrame>, IVector<ColorKeyFrame>
/// [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 ColorKeyFrameCollection final : IIterable<ColorKeyFrame>, IVector<ColorKeyFrame>
[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 ColorKeyFrameCollection : IEnumerable<ColorKeyFrame>, IList<ColorKeyFrame>
[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 ColorKeyFrameCollection : IEnumerable<ColorKeyFrame>, IList<ColorKeyFrame>
Public NotInheritable Class ColorKeyFrameCollection
Implements IEnumerable(Of ColorKeyFrame), IList(Of ColorKeyFrame)
- Vererbung
- Attribute
- Implementiert
Windows-Anforderungen
Gerätefamilie |
Windows 10 (eingeführt in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)
|
Hinweise
Auflisten der Sammlung in C# oder Microsoft Visual Basic
Eine ColorKeyFrameCollection ist aufzählbar, sodass Sie sprachspezifische Syntax wie foreach in C# verwenden können, um die Elemente in der Auflistung aufzulisten. Der Compiler führt die Typumwandlung für Sie durch, und Sie müssen nicht explizit in IEnumerable<ColorKeyFrame>
umwandeln. Wenn Sie eine explizite Umwandlung durchführen müssen, z. B. wenn Sie GetEnumerator aufrufen möchten, wandeln Sie mit einer ColorKeyFrame-Einschränkung in IEnumerable<T> um.
Konstruktoren
ColorKeyFrameCollection() |
Initialisiert eine neue instance der ColorKeyFrameCollection-Klasse. |
Eigenschaften
Size |
Ruft die Größe (Anzahl) der Auflistung ab. |
Methoden
Append(ColorKeyFrame) |
Fügt der Auflistung ein neues Element hinzu. |
Clear() |
Entfernt alle Elemente aus der Auflistung. |
First() |
Gibt den Iterator für die Iteration über die Elemente in der Auflistung zurück. |
GetAt(UInt32) |
Gibt das Element zurück, das sich am angegebenen Index befindet. |
GetMany(UInt32, ColorKeyFrame[]) |
Ruft mehrere Elemente in einem einzigen Durchlauf durch den Iterator ab. |
GetView() |
Ruft eine unveränderliche Ansicht in die Auflistung ab. |
IndexOf(ColorKeyFrame, UInt32) |
Ruft den Index des angegebenen Elements ab. |
InsertAt(UInt32, ColorKeyFrame) |
Fügt das angegebene Element am angegebenen Index ein. |
RemoveAt(UInt32) |
Entfernt das Element am angegebenen Index. |
RemoveAtEnd() |
Entfernt das letzte Element in der Auflistung. |
ReplaceAll(ColorKeyFrame[]) |
Löscht zunächst die Auflistung und fügt dann das bereitgestellte Array als neue Elemente ein. |
SetAt(UInt32, ColorKeyFrame) |
Legt den Wert am angegebenen Index auf den angegebenen ColorKeyFrame-Wert fest. |
Gilt für:
Weitere Informationen
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für