IBindableObservableVector インターフェイス

定義

変更通知用の VectorChanged イベントを追加して、IBindableVector を拡張します。

public interface class IBindableObservableVector : IBindableVector
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
struct IBindableObservableVector : IBindableVector
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(4263425334, 32383, 20368, 172, 154, 71, 73, 132, 170, 229, 18)]
public interface IBindableObservableVector : IBindableVector
Public Interface IBindableObservableVector
Implements IList
属性
実装

注釈

このインターフェイスでは、C++ でのデータ バインド可能なコレクションの作成がサポートされています。 .NET を使用してプログラミングする場合は、 ObservableCollection(Of T) を 使用するか、 IListINotifyCollectionChanged を実装する必要があります。 詳細については、「 コレクションへのバインド」を参照してください。

インターフェイスの継承

IBindableObservableVector は 、IBindableVectorIBindableIterable を継承します。 IBindableObservableVector を実装する型は、C++ 使用の 場合は IBindableVectorIBindableIterable のインターフェイス メンバー、Microsoft .NET の使用では IListIEnumerable のインターフェイス メンバーも実装します。

プロパティ

Size

ベクター内の項目の数を取得します。

(継承元 IBindableVector)

メソッド

Append(Object)

項目をベクターの末尾に追加します。

(継承元 IBindableVector)
Clear()

ベクターからすべての項目を削除します。

(継承元 IBindableVector)
First()

コレクション内の項目を反復処理するバインド可能な反復子を返します。

(継承元 IBindableIterable)
GetAt(UInt32)

ベクター内の指定したインデックス位置にある項目を返します。

(継承元 IBindableVector)
GetView()

ベクターの変更できないビューを返します。

(継承元 IBindableVector)
IndexOf(Object, UInt32)

ベクター内の指定した項目のインデックスを返します。

(継承元 IBindableVector)
InsertAt(UInt32, Object)

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

(継承元 IBindableVector)
RemoveAt(UInt32)

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

(継承元 IBindableVector)
RemoveAtEnd()

ベクター内の最後の項目を削除します。

(継承元 IBindableVector)
SetAt(UInt32, Object)

ベクターの指定したインデックス位置に項目値を設定します。

(継承元 IBindableVector)

イベント

VectorChanged

ベクター コレクションが変更されたときに発生します (追加、削除、項目の変更)。

適用対象

こちらもご覧ください