TriggerActionCollection Klasse

Definition

Stellt eine Auflistung von BeginStoryboard-Objekten dar.

public ref class TriggerActionCollection sealed : IIterable<TriggerAction ^>, IVector<TriggerAction ^>
/// [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 TriggerActionCollection final : IIterable<TriggerAction>, IVector<TriggerAction>
/// [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 TriggerActionCollection final : IIterable<TriggerAction>, IVector<TriggerAction>
[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 TriggerActionCollection : IEnumerable<TriggerAction>, IList<TriggerAction>
[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 TriggerActionCollection : IEnumerable<TriggerAction>, IList<TriggerAction>
Public NotInheritable Class TriggerActionCollection
Implements IEnumerable(Of TriggerAction), IList(Of TriggerAction)
<EventTrigger>
  oneOrMoreBeginStoryboards
</EventTrigger>
Vererbung
Object Platform::Object IInspectable TriggerActionCollection
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 TriggerActionCollection 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<BeginStoryboard> umwandeln. Wenn Sie eine explizite Umwandlung durchführen müssen, z. B. wenn Sie GetEnumerator aufrufen möchten, wandeln Sie in IEnumerable um. T> mit einer BeginStoryboard-Einschränkung .

Konstruktoren

TriggerActionCollection()

Initialisiert eine neue instance der TriggerActionCollection-Klasse.

Eigenschaften

Size

Ruft die Größe (Anzahl) der Auflistung ab.

Methoden

Append(TriggerAction)

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, TriggerAction[])

Ruft mehrere Elemente in einem einzigen Durchlauf durch den Iterator ab.

GetView()

Ruft eine unveränderliche Ansicht in die Auflistung ab.

IndexOf(TriggerAction, UInt32)

Ruft den Index des angegebenen Elements ab.

InsertAt(UInt32, TriggerAction)

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(TriggerAction[])

Löscht zunächst die Auflistung und fügt dann das bereitgestellte Array als neue Elemente ein.

SetAt(UInt32, TriggerAction)

Legt den Wert am angegebenen Index auf den angegebenen TriggerAction-Wert fest.

Gilt für:

Weitere Informationen