UIElementWeakCollection クラス

定義

UIElement オブジェクトへの弱い参照のコレクションを表します。

/// [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 UIElementWeakCollection : IIterable<UIElement>, IVector<UIElement>
[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 class UIElementWeakCollection : IEnumerable<UIElement>, IList<UIElement>
Public Class UIElementWeakCollection
Implements IEnumerable(Of UIElement), IList(Of UIElement)
継承
Object IInspectable UIElementWeakCollection
属性
実装

注釈

このクラスは ThemeShadow.Receivers プロパティによって使用されます。

コンストラクター

UIElementWeakCollection()

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

プロパティ

Size

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

メソッド

Append(UIElement)

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

Clear()

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

First()

コレクション内の項目の反復子を返します。

GetAt(UInt32)

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

GetMany(UInt32, UIElement[])

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

GetView()

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

IndexOf(UIElement, UInt32)

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

InsertAt(UInt32, UIElement)

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

RemoveAt(UInt32)

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

RemoveAtEnd()

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

ReplaceAll(UIElement[])

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

SetAt(UInt32, UIElement)

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

適用対象

こちらもご覧ください