TriggerActionCollection クラス

定義

BeginStoryboard オブジェクトのコレクションを表します。

public ref class TriggerActionCollection sealed : IIterable<TriggerAction ^>, IVector<TriggerAction ^>
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 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.Activatable(65536, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 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>
Public NotInheritable Class TriggerActionCollection
Implements IEnumerable(Of TriggerAction), IList(Of TriggerAction)
<EventTrigger>
  oneOrMoreBeginStoryboards
</EventTrigger>
継承
Object Platform::Object IInspectable TriggerActionCollection
属性
実装

注釈

C でのコレクションの列挙#

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

コンストラクター

TriggerActionCollection()

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

プロパティ

Size

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

メソッド

Append(TriggerAction)

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

Clear()

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

First()

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

GetAt(UInt32)

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

GetMany(UInt32, TriggerAction[])

反復子を通過する 1 つのパス内の複数の要素を取得します。

GetView()

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

IndexOf(TriggerAction, UInt32)

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

InsertAt(UInt32, TriggerAction)

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

RemoveAt(UInt32)

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

RemoveAtEnd()

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

ReplaceAll(TriggerAction[])

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

SetAt(UInt32, TriggerAction)

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

適用対象

こちらもご覧ください